Skip to content

Create warning for appending mode 'a' operations#675

Merged
martindurant merged 3 commits intofsspec:mainfrom
tassilucas:appending-mode-warn
May 20, 2025
Merged

Create warning for appending mode 'a' operations#675
martindurant merged 3 commits intofsspec:mainfrom
tassilucas:appending-mode-warn

Conversation

@tassilucas
Copy link
Copy Markdown
Contributor

Add specific warning for files in appending mode since gcsfs ignores mode='a' as stated in issue #533.

Copy link
Copy Markdown
Member

@martindurant martindurant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestion - it is reasonable.

I wonder whether someone would like to try to implement append mode via compose , i.e., write new data to a temporary file and then join the parts.
For small initial files (< block_size), they can simply be read and re-written.

Comment thread gcsfs/core.py Outdated
@martindurant martindurant merged commit dd32e23 into fsspec:main May 20, 2025
6 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.

2 participants