summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f>2009-05-31 08:21:54 +0000
committerrfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f>2009-05-31 08:21:54 +0000
commit469e5d63f69dc42a28df9e17e55caf3029c9eaac (patch)
tree6c9633873e14f4e499d6998713d2b3c899210bd7
parentfa596b8a639c3a04dacaffb1b1432f8895dec178 (diff)
downloadpyfilesystem-469e5d63f69dc42a28df9e17e55caf3029c9eaac.tar.gz
fix base move() implementation
git-svn-id: http://pyfilesystem.googlecode.com/svn/branches/rfk-ideas@144 67cdc799-7952-0410-af00-57a81ceafa0f
-rw-r--r--fs/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/base.py b/fs/base.py
index e99fde5..ea7647f 100644
--- a/fs/base.py
+++ b/fs/base.py
@@ -591,7 +591,7 @@ class FS(object):
if os.path.isdir(src_syspath):
raise ResourceInvalidError(src,msg="Source is not a file: %(path)s")
raise FileNotFoundError(src)
- if not overwrite and os.path.exists(dst):
+ if not overwrite and os.path.exists(dst_syspath):
raise DestinationExistsError(dst)
try:
os.rename(src_syspath,dst_syspath)