FileSystemAttributes
Defined in: src/internal/filesystem.ts:50
Internal
Attributes that control how the file system interacts with the VFS. No options are set by default.
Properties
Section titled “Properties”case_fold?
Section titled “case_fold?”
optionalcase_fold?:CaseFold
Defined in: src/internal/filesystem.ts:105
If set, the VFS layer will convert paths to lower/upper case.
default_stream_read
Section titled “default_stream_read”default_stream_read:
void
Defined in: src/internal/filesystem.ts:76
Internal
The FS is using the default implementation for streamRead
default_stream_write
Section titled “default_stream_write”default_stream_write:
void
Defined in: src/internal/filesystem.ts:82
Internal
The FS is using the default implementation for streamWrite
no_async_preload
Section titled “no_async_preload”no_async_preload:
void
Defined in: src/internal/filesystem.ts:56
If set disables async file systems from preloading their contents. This means sync operations will not work (unless the contents are cached) It has no affect on sync file systems.
no_atime
Section titled “no_atime”no_atime:
void
Defined in: src/internal/filesystem.ts:87
Do not update access times.
no_cache
Section titled “no_cache”no_cache:
void
Defined in: src/internal/filesystem.ts:62
Currently unused. In the future, this will disable caching.
Analogous to S_DAX on every file.
no_suid
Section titled “no_suid”no_suid:
void
Defined in: src/internal/filesystem.ts:94
Ignore suid and sgid bits.
Implement
no_write
Section titled “no_write”no_write:
void
Defined in: src/internal/filesystem.ts:70
If set, the file system should not be written to. This should be set for read-only file systems. Note this does NOT trigger EROFS errors; writes will silently be dropped.
sync:
void
Defined in: src/internal/filesystem.ts:100
Writes are synced at once