Commit 45fc29be by btimby

Forgot to decode paths in rename() method

parent e0a4a12d
......@@ -101,6 +101,10 @@ class FTPFS(ftpserver.AbstractedFS):
@convert_fs_errors
def rename(self, src, dst):
if not isinstance(src, unicode):
src = src.decode(self.encoding)
if not isinstance(dst, unicode):
dst = dst.decode(self.encoding)
self.fs.rename(src, dst)
def chmod(self, path, mode):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment