mirror of
https://github.com/9001/copyparty.git
synced 2025-10-06 03:50:30 +02:00
30% faster folder listings (wtf...)
This commit is contained in:
parent
673b4f7e23
commit
55c74ad164
3 changed files with 24 additions and 4 deletions
|
@ -3604,7 +3604,14 @@ class HttpCli(object):
|
|||
|
||||
sz = inf.st_size
|
||||
zd = datetime.utcfromtimestamp(linf.st_mtime)
|
||||
dt = zd.strftime("%Y-%m-%d %H:%M:%S")
|
||||
dt = "%04d-%02d-%02d %02d:%02d:%02d" % (
|
||||
zd.year,
|
||||
zd.month,
|
||||
zd.day,
|
||||
zd.hour,
|
||||
zd.minute,
|
||||
zd.second,
|
||||
)
|
||||
|
||||
try:
|
||||
ext = "---" if is_dir else fn.rsplit(".", 1)[1]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue