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

Fix touch exists_ok if file exists #262

Merged
merged 3 commits into from
Aug 30, 2024
Merged

Fix touch exists_ok if file exists #262

merged 3 commits into from
Aug 30, 2024

Conversation

ap--
Copy link
Collaborator

@ap-- ap-- commented Aug 30, 2024

Close #216

This fixes behavior of touch. truncate should never be set on an existing file when using touch from the pathlib api.
This also silently ignores an error when the filesystem does not support touching an existing file. (We could consider throwing a warning in this case)

@ap-- ap-- self-assigned this Aug 30, 2024
@ap-- ap-- merged commit 162dd2f into fsspec:main Aug 30, 2024
19 checks passed
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.

S3Path.touch with exist_ok=True on existing file raises an error
1 participant