Skip to content

FSContext

Defined in: src/internal/contexts.ts:24

A context used for FS operations

readonly [kIsContext]: boolean

Defined in: src/internal/contexts.ts:26

Brand


readonly children: FSContext[]

Defined in: src/internal/contexts.ts:50

The child contexts


readonly credentials: Credentials

Defined in: src/internal/contexts.ts:41

The credentials of the context, used for access checks


readonly descriptors: Map<number, Handle>

Defined in: src/internal/contexts.ts:44

A map of open file descriptors to their handles


readonly id: number

Defined in: src/internal/contexts.ts:29

The unique ID of the context


readonly mounts: Map<string, FileSystem>

Defined in: src/internal/contexts.ts:53

The mount table for this context


readonly parent: FSContext | null

Defined in: src/internal/contexts.ts:47

The parent context, if any.


pwd: string

Defined in: src/internal/contexts.ts:38

The current working directory of the context


root: string

Defined in: src/internal/contexts.ts:35

The absolute root path of the context. Note the parent’s root is not considered