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)