Skip to content

Commit 959f732

Browse files
committed
Make copydir work again - fixes issue #90
1 parent 7f95af6 commit 959f732

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fs_s3fs/_s3fs.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,9 @@ def upload(self, path, file, chunk_size=None, **options):
775775
file, self._bucket_name, _key, ExtraArgs=self._get_upload_args(_key)
776776
)
777777

778-
def copy(self, src_path, dst_path, overwrite=False):
778+
def copy(self, src_path, dst_path, overwrite=False, preserve_time=False):
779+
if preserve_time:
780+
raise NotImplementedError("preserve_time is not yet supported with S3 backend")
779781
if not overwrite and self.exists(dst_path):
780782
raise errors.DestinationExists(dst_path)
781783
_src_path = self.validatepath(src_path)

0 commit comments

Comments
 (0)