summaryrefslogtreecommitdiff
path: root/fs/sftpfs.py
diff options
context:
space:
mode:
authorrfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f>2010-10-16 08:52:59 +0000
committerrfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f>2010-10-16 08:52:59 +0000
commit1d9bd34e116d569017019c6f65751389d92d1fd2 (patch)
tree558c2a502cda5c08ea3766ddf6f3c40f723944b3 /fs/sftpfs.py
parent214a544890b39e08fd9a0a1d0c31694db1877ed9 (diff)
downloadpyfilesystem-git-1d9bd34e116d569017019c6f65751389d92d1fd2.tar.gz
fix error reporting in movedir(src,dst) when src is missing
Diffstat (limited to 'fs/sftpfs.py')
-rw-r--r--fs/sftpfs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/sftpfs.py b/fs/sftpfs.py
index 91fc030..03feb10 100644
--- a/fs/sftpfs.py
+++ b/fs/sftpfs.py
@@ -301,7 +301,7 @@ class SFTPFS(FS):
self.client.rename(nsrc,ndst)
except IOError, e:
if getattr(e,"errno",None) == 2:
- raise ResourceNotFoundError(path)
+ raise ResourceNotFoundError(src)
if self.exists(dst):
raise DestinationExistsError(dst)
if not self.isdir(dirname(dst)):