remove placeholder "---" file type of directories

This commit is contained in:
Til Schmitter 2026-05-01 20:36:34 +02:00
parent ba458e7a58
commit cc21cc8966

View file

@ -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: