Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make copydir work again - fixes issue #90 #92

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

i18n-tribe
Copy link

@i18n-tribe i18n-tribe commented Jan 9, 2024

Since the preserve_time kwarg was added to the fs.copydir method in PyFilesystem core, it has not been possible to use fs.copydir with an S3 backend. See this issue for more details.

The same issue probably also affects fs.move, because this method also uses the same copy implementation under the hood. I haven't tested fs.move with S3FS, but it's likely it is also broken currently, and will be fixed by this PR.

This small PR will make S3FS compatible with PyFilesystem core again. It fixes code that has broken since PyFilesystem core introduced the preserve_time feature.

This PR will enable fs.copydir and fs.move with preserve_time is set as False (the default).

This PR does not attempt to implement any new functionality. If preserve_time is set as True, a NotImplementedError will be raised.

If someone needs the preserve_time=True funcationality with S3FS, this could be implemented in a future PR.

For now – this PR will unblock users who do not need this new feature.

@i18n-tribe i18n-tribe force-pushed the make_copydir_work_again---fixes_issue-90 branch from 959f732 to e9ee191 Compare January 9, 2024 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant