mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
ftpd: kde tries to cwd into images
This commit is contained in:
parent
b2ab8f971e
commit
450121eac9
|
@ -152,7 +152,14 @@ class FtpFs(AbstractedFS):
|
|||
return open(fsenc(ap), mode)
|
||||
|
||||
def chdir(self, path: str) -> None:
|
||||
self.cwd = join(self.cwd, path)
|
||||
nwd = join(self.cwd, path)
|
||||
vfs, rem = self.hub.asrv.vfs.get(nwd, self.uname, False, False)
|
||||
ap = vfs.canonical(rem)
|
||||
if not bos.path.isdir(ap):
|
||||
# returning 550 is library-default and suitable
|
||||
raise FilesystemError("Failed to change directory")
|
||||
|
||||
self.cwd = nwd
|
||||
(
|
||||
self.can_read,
|
||||
self.can_write,
|
||||
|
|
Loading…
Reference in a new issue