summaryrefslogtreecommitdiff
path: root/fs/multifs.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/multifs.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/multifs.py')
-rw-r--r--fs/multifs.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/multifs.py b/fs/multifs.py
index 8163300..90c2abe 100644
--- a/fs/multifs.py
+++ b/fs/multifs.py
@@ -158,8 +158,6 @@ class MultiFS(FS):
@synchronize
def rename(self, src, dst):
- if not issamedir(src, dst):
- raise ValueError("Destination path must the same directory (use the move method for moving to a different directory)")
for fs in self:
if fs.exists(src):
fs.rename(src, dst)