mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -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:
|
||||
fn = cfn[0]
|
||||
fp = os.path.join(abspath, fn)
|
||||
if bos.path.exists(fp):
|
||||
vrem = "{}/{}".format(vrem, fn).strip("/")
|
||||
is_dir = False
|
||||
st = bos.stat(fp)
|
||||
vrem = "{}/{}".format(vrem, fn).strip("/")
|
||||
is_dir = False
|
||||
except:
|
||||
pass
|
||||
else:
|
||||
for fn in self.args.th_covers:
|
||||
fp = os.path.join(abspath, fn)
|
||||
if bos.path.exists(fp):
|
||||
try:
|
||||
st = bos.stat(fp)
|
||||
vrem = "{}/{}".format(vrem, fn).strip("/")
|
||||
is_dir = False
|
||||
break
|
||||
except:
|
||||
pass
|
||||
|
||||
if is_dir:
|
||||
return self.tx_svg("folder")
|
||||
|
|
Loading…
Reference in a new issue