mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
don't freak out when deleting a broken symlink,
also invoke the hooks with the corret lastmod time
This commit is contained in:
parent
5f7ce78d7f
commit
e70ecd98ef
|
@ -3194,7 +3194,13 @@ class Up2k(object):
|
|||
break
|
||||
|
||||
abspath = djoin(adir, fn)
|
||||
st = stl = bos.lstat(abspath)
|
||||
if stat.S_ISLNK(st.st_mode):
|
||||
try:
|
||||
st = bos.stat(abspath)
|
||||
except:
|
||||
pass
|
||||
|
||||
volpath = "{}/{}".format(vrem, fn).strip("/")
|
||||
vpath = "{}/{}".format(dbv.vpath, volpath).strip("/")
|
||||
self.log("rm {}\n {}".format(vpath, abspath))
|
||||
|
@ -3207,7 +3213,7 @@ class Up2k(object):
|
|||
vpath,
|
||||
"",
|
||||
uname,
|
||||
st.st_mtime,
|
||||
stl.st_mtime,
|
||||
st.st_size,
|
||||
ip,
|
||||
0,
|
||||
|
@ -3237,7 +3243,7 @@ class Up2k(object):
|
|||
vpath,
|
||||
"",
|
||||
uname,
|
||||
st.st_mtime,
|
||||
stl.st_mtime,
|
||||
st.st_size,
|
||||
ip,
|
||||
0,
|
||||
|
|
Loading…
Reference in a new issue