diff options
author | rfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f> | 2009-05-31 08:21:54 +0000 |
---|---|---|
committer | rfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f> | 2009-05-31 08:21:54 +0000 |
commit | 3ac95c055463eb73f552c91e2894a7d8888aa1bf (patch) | |
tree | 6c9633873e14f4e499d6998713d2b3c899210bd7 | |
parent | 63f378db809c2e3bdf3225ebbd0e710247d4dfdb (diff) | |
download | pyfilesystem-git-3ac95c055463eb73f552c91e2894a7d8888aa1bf.tar.gz |
fix base move() implementation
-rw-r--r-- | fs/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |