diff options
author | btimby <btimby@67cdc799-7952-0410-af00-57a81ceafa0f> | 2012-04-20 20:08:41 +0000 |
---|---|---|
committer | btimby <btimby@67cdc799-7952-0410-af00-57a81ceafa0f> | 2012-04-20 20:08:41 +0000 |
commit | 45fc29beb87687285b1f4bd81c0f1bef44b1941a (patch) | |
tree | 8fb4b8679cc2f983764e02a4561ad8061b9c51a0 /fs/expose | |
parent | e0a4a12d4268ad0d32b38218228f49d587fa2f88 (diff) | |
download | pyfilesystem-git-45fc29beb87687285b1f4bd81c0f1bef44b1941a.tar.gz |
Forgot to decode paths in rename() method
Diffstat (limited to 'fs/expose')
-rw-r--r-- | fs/expose/ftp.py | 4 |
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): |