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
commit3ac95c055463eb73f552c91e2894a7d8888aa1bf (patch)
tree6c9633873e14f4e499d6998713d2b3c899210bd7
parent63f378db809c2e3bdf3225ebbd0e710247d4dfdb (diff)
downloadpyfilesystem-git-3ac95c055463eb73f552c91e2894a7d8888aa1bf.tar.gz
fix base move() implementation
-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)