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 | 469e5d63f69dc42a28df9e17e55caf3029c9eaac (patch) | |
tree | 6c9633873e14f4e499d6998713d2b3c899210bd7 | |
parent | fa596b8a639c3a04dacaffb1b1432f8895dec178 (diff) | |
download | pyfilesystem-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.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) |