From 8ae54e5cbb79429b8eb908aa37c78d35c1ead9ca Mon Sep 17 00:00:00 2001 From: Danilo Poccia Date: Tue, 17 Jun 2014 18:46:42 +0200 Subject: [PATCH] Move/rename dirs now works recoursively to keep the cache updated. --- yas3fs/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yas3fs/__init__.py b/yas3fs/__init__.py index b2fcdf2..9850b6a 100755 --- a/yas3fs/__init__.py +++ b/yas3fs/__init__.py @@ -1923,7 +1923,7 @@ def rename_path(self, path, new_path): if d in ['.', '..']: continue d_path = ''.join([path, '/', d]) - d_new_path = ''.join([new_path, '/', os.path.basename(path), d]) + d_new_path = ''.join([new_path, '/', d]) attr = self.getattr(d_path) if stat.S_ISDIR(attr['st_mode']): self.rename_path(d_path, d_new_path)