mirror of
https://github.com/9001/copyparty.git
synced 2026-11-10 12:28:23 +00:00
DELETE: say 404 on enoent; closes #1656
This commit is contained in:
1 parent
670e86228c
commit
74b17374c2
1 file changed
+1
-1
+1
-1
@@ -4409,7 +4409,7 @@ class Up2k(object):
|
||||
is_dir = stat.S_ISDIR(st.st_mode)
|
||||
except:
|
||||
# NOTE: "file not found" *sftpd
|
||||
raise Pebkac(400, "file not found on disk (already deleted?)")
|
||||
raise Pebkac(404, "file not found on disk (already deleted?)")
|
||||
|
||||
if "bcasechk" in vn.flags and not vn.casechk(rem, False):
|
||||
raise Pebkac(400, "file does not exist case-sensitively")
|
||||
|
||||
Reference in new issue
Block a user