mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
better msg when unposting a deleted file
This commit is contained in:
parent
cc05e67d8f
commit
4802f8cf07
|
@ -1428,7 +1428,11 @@ class Up2k(object):
|
||||||
ptop = vn.realpath
|
ptop = vn.realpath
|
||||||
atop = vn.canonical(rem, False)
|
atop = vn.canonical(rem, False)
|
||||||
adir, fn = os.path.split(atop)
|
adir, fn = os.path.split(atop)
|
||||||
st = bos.lstat(atop)
|
try:
|
||||||
|
st = bos.lstat(atop)
|
||||||
|
except:
|
||||||
|
raise Pebkac(400, "file not found on disk (already deleted?)")
|
||||||
|
|
||||||
scandir = not self.args.no_scandir
|
scandir = not self.args.no_scandir
|
||||||
if stat.S_ISLNK(st.st_mode) or stat.S_ISREG(st.st_mode):
|
if stat.S_ISLNK(st.st_mode) or stat.S_ISREG(st.st_mode):
|
||||||
dbv, vrem = self.asrv.vfs.get(vpath, uname, *permsets[0])
|
dbv, vrem = self.asrv.vfs.get(vpath, uname, *permsets[0])
|
||||||
|
|
Loading…
Reference in a new issue