mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
use correct mtime for folder thumbs;
mtime the file that was used to produce the folder thumbnail (rather than the folder itself) since the folder-thumb is always resolved to the file's thumb in the on-disk cache
This commit is contained in:
parent
c549f367c1
commit
d76673e62d
|
@ -4287,18 +4287,21 @@ class HttpCli(object):
|
||||||
if cfn:
|
if cfn:
|
||||||
fn = cfn[0]
|
fn = cfn[0]
|
||||||
fp = os.path.join(abspath, fn)
|
fp = os.path.join(abspath, fn)
|
||||||
if bos.path.exists(fp):
|
st = bos.stat(fp)
|
||||||
vrem = "{}/{}".format(vrem, fn).strip("/")
|
vrem = "{}/{}".format(vrem, fn).strip("/")
|
||||||
is_dir = False
|
is_dir = False
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
for fn in self.args.th_covers:
|
for fn in self.args.th_covers:
|
||||||
fp = os.path.join(abspath, fn)
|
fp = os.path.join(abspath, fn)
|
||||||
if bos.path.exists(fp):
|
try:
|
||||||
|
st = bos.stat(fp)
|
||||||
vrem = "{}/{}".format(vrem, fn).strip("/")
|
vrem = "{}/{}".format(vrem, fn).strip("/")
|
||||||
is_dir = False
|
is_dir = False
|
||||||
break
|
break
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
if is_dir:
|
if is_dir:
|
||||||
return self.tx_svg("folder")
|
return self.tx_svg("folder")
|
||||||
|
|
Loading…
Reference in a new issue