File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
system/lib/wasmfs/backends Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ class NodeState {
2323 int fd = -1 ;
2424
2525public:
26+ // Base path in the host filesystem for this backend.
27+ // An empty string means "no base path": paths are used as-is without
28+ // prefixing.
2629 std::string path;
2730
2831 NodeState (std::string path) : path(path) {}
Original file line number Diff line number Diff line change 66#include " emscripten/wasmfs.h"
77
88backend_t wasmfs_create_root_dir (void ) {
9+ // Use an empty string as the backend "path" to indicate that this backend
10+ // is mounted at the real filesystem root. In this mode, paths are passed
11+ // through verbatim (no "./" prefix or path rewriting), which is required
12+ // for correct handling of absolute paths under NODERAWFS.
913 return wasmfs_create_node_backend (" " );
1014}
You can’t perform that action at this time.
0 commit comments