mirror of
https://github.com/9001/copyparty.git
synced 2026-06-20 13:12:26 -06:00
remove placeholder "---" file type of directories
This commit is contained in:
parent
ba458e7a58
commit
cc21cc8966
|
|
@ -6642,7 +6642,7 @@ class HttpCli(object):
|
||||||
{
|
{
|
||||||
"lead": "",
|
"lead": "",
|
||||||
"href": "%s/" % (x,),
|
"href": "%s/" % (x,),
|
||||||
"ext": "---",
|
"ext": "",
|
||||||
"sz": 0,
|
"sz": 0,
|
||||||
"ts": 0,
|
"ts": 0,
|
||||||
"tags": e_d,
|
"tags": e_d,
|
||||||
|
|
@ -7263,7 +7263,7 @@ class HttpCli(object):
|
||||||
)
|
)
|
||||||
|
|
||||||
if is_dir:
|
if is_dir:
|
||||||
ext = "---"
|
ext = ""
|
||||||
elif "." in fn:
|
elif "." in fn:
|
||||||
ext = ptn_hr.sub("@", fn.rsplit(".", 1)[1])
|
ext = ptn_hr.sub("@", fn.rsplit(".", 1)[1])
|
||||||
if len(ext) > 16:
|
if len(ext) > 16:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue