From e9ee191bafb7597a77ceb3ddd533e56a5d54eac9 Mon Sep 17 00:00:00 2001 From: i18n-tribe <62100288+i18n-tribe@users.noreply.github.com> Date: Tue, 9 Jan 2024 10:41:42 +0000 Subject: [PATCH] Make copydir work again - fixes issue #90 --- CHANGELOG.md | 6 ++++++ fs_s3fs/_s3fs.py | 4 +++- fs_s3fs/_version.py | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e166da1..0af7f27 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [1.1.2] - 2024-01-09 + +### Fixed + +- fs.copydir is now working again with the latest version of FS - see [issue #90](https://github.com/PyFilesystem/s3fs/issues/90) + ## [1.1.1] - 2019-08-14 ### Changed diff --git a/fs_s3fs/_s3fs.py b/fs_s3fs/_s3fs.py index d7f98e2..efb7eee 100644 --- a/fs_s3fs/_s3fs.py +++ b/fs_s3fs/_s3fs.py @@ -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) diff --git a/fs_s3fs/_version.py b/fs_s3fs/_version.py index a82b376..72f26f5 100644 --- a/fs_s3fs/_version.py +++ b/fs_s3fs/_version.py @@ -1 +1 @@ -__version__ = "1.1.1" +__version__ = "1.1.2"