From df78fc57320608fd39e93f490ecdc01f3be56f69 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 22 Mar 2026 15:43:21 +0000 Subject: [PATCH] throw ValueError for clarity --- copyparty/authsrv.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/copyparty/authsrv.py b/copyparty/authsrv.py index 254b1ce5..5064e86c 100644 --- a/copyparty/authsrv.py +++ b/copyparty/authsrv.py @@ -709,7 +709,7 @@ class VFS(object): if self.shr_files: assert self.shr_src # !rm if rem and rem not in self.shr_files: - return "\n\n" + return "\n\n\0\n\n" if resolve: rap = absreal(ap) vn, rem = self.shr_src @@ -718,7 +718,7 @@ class VFS(object): # not the dir itself; assert file allowed ad, fn = os.path.split(rap) if chk != ad or fn not in self.shr_files: - return "\n\n" + return "\n\n\0\n\n" return (rap or absreal(ap)) if resolve else ap @@ -737,7 +737,7 @@ class VFS(object): if chk != absreal(ap): # not the dir itself; assert file allowed if ad != chk or fn not in self.shr_files: - return "\n\n" + return "\n\n\0\n\n" return os.path.join(ad, fn)