mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
support viewing dotfile docs; closes #104
This commit is contained in:
parent
1d68acf8f0
commit
9ccd8bb3ea
|
@ -5467,7 +5467,11 @@ class HttpCli(object):
|
|||
if doc:
|
||||
j2a["docname"] = doc
|
||||
doctxt = None
|
||||
if next((x for x in files if x["name"] == doc), None):
|
||||
dfn = lnames.get(doc.lower())
|
||||
if dfn and dfn != doc:
|
||||
# found Foo but want FOO
|
||||
dfn = next((x for x in files if x["name"] == doc), None)
|
||||
if dfn:
|
||||
docpath = os.path.join(abspath, doc)
|
||||
sz = bos.path.getsize(docpath)
|
||||
if sz < 1024 * self.args.txt_max:
|
||||
|
|
Loading…
Reference in a new issue