summaryrefslogtreecommitdiff
path: root/fs/expose
diff options
context:
space:
mode:
authorbtimby <btimby@67cdc799-7952-0410-af00-57a81ceafa0f>2012-04-20 20:08:41 +0000
committerbtimby <btimby@67cdc799-7952-0410-af00-57a81ceafa0f>2012-04-20 20:08:41 +0000
commit45fc29beb87687285b1f4bd81c0f1bef44b1941a (patch)
tree8fb4b8679cc2f983764e02a4561ad8061b9c51a0 /fs/expose
parente0a4a12d4268ad0d32b38218228f49d587fa2f88 (diff)
downloadpyfilesystem-git-45fc29beb87687285b1f4bd81c0f1bef44b1941a.tar.gz
Forgot to decode paths in rename() method
Diffstat (limited to 'fs/expose')
-rw-r--r--fs/expose/ftp.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/expose/ftp.py b/fs/expose/ftp.py
index 0a09581..9b50203 100644
--- a/fs/expose/ftp.py
+++ b/fs/expose/ftp.py
@@ -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):