-
Notifications
You must be signed in to change notification settings - Fork 401
Open
Description
fsspec/implementations/memory.py
class MemoryFileSystem(AbstractFileSystem):
"""A filesystem based on a dict of BytesIO objects
This is a global filesystem so instances of this class all point to the same
in memory filesystem.
"""
store: ClassVar[dict[str, Any]] = {} # global, do not overwrite!
pseudo_dirs = [""] # global, do not overwrite!
... ok, but i need multiple different memory filesystems in parallel
assert (
fsspec.filesystem("memory://").store !=
fsspec.filesystem("memory://").store
)
this should be as simple as moving store
and pseudo_dirs
to def __init__
maybe add a new protocol localmemory
Metadata
Metadata
Assignees
Labels
No labels