summaryrefslogtreecommitdiff
path: root/fs/mountfs.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
commit3a3eae6aa410f5c9e223999bdc7d1b4747041e52 (patch)
tree91f9db4c3597a8405b7014274c443e017fe1f2d8 /fs/mountfs.py
parenta703cdbaf46fdbed3515ea674b8402715e87df33 (diff)
downloadpyfilesystem-3a3eae6aa410f5c9e223999bdc7d1b4747041e52.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. git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@299 67cdc799-7952-0410-af00-57a81ceafa0f
Diffstat (limited to 'fs/mountfs.py')
-rw-r--r--fs/mountfs.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/mountfs.py b/fs/mountfs.py
index 1e397e3..f9e27ee 100644
--- a/fs/mountfs.py
+++ b/fs/mountfs.py
@@ -200,8 +200,6 @@ class MountFS(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)")
fs1, mount_path1, delegate_path1 = self._delegate(src)
fs2, mount_path2, delegate_path2 = self._delegate(dst)