emscripten-core / emscripten-core/emscripten

Feature Request: Mount OPFS subdirectories

Open
#27,621 0 comments 0 reactions 0 assignees View on GitHub
wasmfs
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

I am building a multi-module website that would benefit from separate mount points for each module.

I propose the ability to mount OPFS subdirectories in wasmfs. Currently, only the OPFS root can be mounted. The backend returned by wasmfs_create_opfs_backend() always binds to the root.

I suggest adding something like `wasmfs_create_opfs_backend_at(path)` which takes a path and returns a backend representing a subdirectory of the OPFS root.

If requested, I can provide an initial implementation of this feature.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.