Skip to content

Commit

Permalink
Make copydir work again - fixes issue PyFilesystem#90
Browse files Browse the repository at this point in the history
  • Loading branch information
i18n-tribe committed Jan 9, 2024
1 parent 7f95af6 commit 959f732
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs_s3fs/_s3fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,9 @@ def upload(self, path, file, chunk_size=None, **options):
file, self._bucket_name, _key, ExtraArgs=self._get_upload_args(_key)
)

def copy(self, src_path, dst_path, overwrite=False):
def copy(self, src_path, dst_path, overwrite=False, preserve_time=False):
if preserve_time:
raise NotImplementedError("preserve_time is not yet supported with S3 backend")
if not overwrite and self.exists(dst_path):
raise errors.DestinationExists(dst_path)
_src_path = self.validatepath(src_path)
Expand Down

0 comments on commit 959f732

Please sign in to comment.