diff options
author | rfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f> | 2009-12-17 10:40:11 +0000 |
---|---|---|
committer | rfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f> | 2009-12-17 10:40:11 +0000 |
commit | 6525a214056c94f892ee2f51b886454422dfd9bf (patch) | |
tree | 91f9db4c3597a8405b7014274c443e017fe1f2d8 /fs/s3fs.py | |
parent | 0a533ceb40f4d5bb1471a476f6f21e26d6d57337 (diff) | |
download | pyfilesystem-git-6525a214056c94f892ee2f51b886454422dfd9bf.tar.gz |
FS.rename: remove requirment that src and dst be in the same dir
Most filesystem seem to support moving between different directories, and it's
really inconvenient to have to break out os.rename() to achieve this.
Diffstat (limited to 'fs/s3fs.py')
-rw-r--r-- | fs/s3fs.py | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -394,8 +394,6 @@ class S3FS(FS): def rename(self,src,dst): """Rename the file at 'src' to 'dst'.""" - if not issamedir(src,dst): - raise ValueError("Destination path must be in the same directory (use the 'move' method for moving to a different directory)") # Actually, in S3 'rename' is exactly the same as 'move' self.move(src,dst) |