Skip to content

Conversation

orenl
Copy link
Contributor

@orenl orenl commented Sep 28, 2025

Resolves #1921

Memory filesystem's open() method supports some - but not all - file modes.
Specifically it supports "r+b" but not "a+b", "w+b", and "x+b". Add them.

(It also doesn't respect read-only/write-only properties; but the fix is more
involved and not (yet?) in demand; left as an exercise to the reader...)
@martindurant
Copy link
Member

This if fine, I will merge. However, I'm not sure how useful those extra modes are - essentially all remote FSs only allow "w" and "r" and even "a" needs emulating.

@martindurant martindurant merged commit 36cb6af into fsspec:master Sep 29, 2025
10 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.

MemoryFilesSstem missing valid modes for open()

2 participants