summaryrefslogtreecommitdiff
path: root/fs/s3fs.py
diff options
context:
space:
mode:
authorrfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f>2009-12-17 10:40:11 +0000
committerrfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f>2009-12-17 10:40:11 +0000
commit6525a214056c94f892ee2f51b886454422dfd9bf (patch)
tree91f9db4c3597a8405b7014274c443e017fe1f2d8 /fs/s3fs.py
parent0a533ceb40f4d5bb1471a476f6f21e26d6d57337 (diff)
downloadpyfilesystem-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.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/s3fs.py b/fs/s3fs.py
index b566cae..0ccd4fe 100644
--- a/fs/s3fs.py
+++ b/fs/s3fs.py
@@ -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)