> Every page of the ganymede website is listed in https://eugo.io/docs/ganymede/llms.txt.

# Memfs

> Memfs: Work with data in memory. In-Memory Object Storage FileSystem based on Trie data-structure. A Python demo notebook from ganymede.

Web page: https://eugo.io/docs/ganymede/demo_notebooks/data_storage/filesystems/fsspec/memfs/
Notebook: https://eugo.io/docs/ganymede/demo_notebooks/data_storage/filesystems/fsspec/memfs/memfs.ipynb (source: https://github.com/eugo-inc/ganymede/blob/main/demo_notebooks/data_storage/filesystems/fsspec/memfs.ipynb)

Description:
- Work with data in memory. In-Memory Object Storage FileSystem based on Trie data-structure.

Resources:
- [GitHub] https://github.com/iterative/morefs/blob/main/src/morefs/memory.py

## Example 1

Create text files in memory and find them

```python
from pathlib import Path
from morefs.memory import MemFS

fs = MemFS()

# Create a dir and define files to be created
fp = "/tmp/ganymede_demo"
path = Path(fp).mkdir(exist_ok=True)
test_fp1 = f"{fp}/test1.txt"
test_fp2 = f"{fp}/test2.txt"

# Create the files in memory
fs.touch(test_fp1)
fs.touch(test_fp2)

files = fs.find("")
print(files)
```
