SystemFileSystem

An instance of FileSystem representing a default system-wide filesystem.

An instance of FileSystem representing a default system-wide filesystem.

The implementation is built upon Wasm WASI preview 1.

To use files, at least one directory should be pre-opened.

Operations on all absolute paths that are not sub-paths of pre-opened directories will fail.

Relative paths are treated as paths relative to the first pre-opened directory. For example, if following directories were pre-opened: /work, /tmp, /persistent, then the path a/b/c/d will be resolved to /work/a/b/c/d as /work is the first pre-opened directory.