mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -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
|
||||
atop = vn.canonical(rem, False)
|
||||
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
|
||||
if stat.S_ISLNK(st.st_mode) or stat.S_ISREG(st.st_mode):
|
||||
dbv, vrem = self.asrv.vfs.get(vpath, uname, *permsets[0])
|
||||
|
|
Loading…
Reference in a new issue