Skip to content

Commit 8ae54e5

Browse files
committed
Move/rename dirs now works recoursively to keep the cache updated.
1 parent cb167c7 commit 8ae54e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yas3fs/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1923,7 +1923,7 @@ def rename_path(self, path, new_path):
19231923
if d in ['.', '..']:
19241924
continue
19251925
d_path = ''.join([path, '/', d])
1926-
d_new_path = ''.join([new_path, '/', os.path.basename(path), d])
1926+
d_new_path = ''.join([new_path, '/', d])
19271927
attr = self.getattr(d_path)
19281928
if stat.S_ISDIR(attr['st_mode']):
19291929
self.rename_path(d_path, d_new_path)

0 commit comments

Comments
 (0)