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:51

The child contexts


readonly credentials: Credentials

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

The credentials of the context, used for access checks


readonly descriptors: Map<number, Handle>

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

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:54

The mount table for this context


readonly parent: FSContext | null

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

The parent context, if any.


pwd: string

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

The current working directory of the context


root: string

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

The absolute root path of the context

Note the parent’s root is not considered