Interface FsReadCeiling

The scope a host grants fs.read under.

interface FsReadCeiling {
    roots: string[];
    maxBytesPerRead?: number;
    timeoutMs?: number;
}

Properties

roots: string[]

Absolute directories a forged tool may read under, after symlinks are resolved; [] grants nothing.

maxBytesPerRead?: number

A file larger than this is refused while it streams.

Default

1_048_576
timeoutMs?: number

One read's time bound; at most 2_147_483_647 (Node's longest timer delay).

Default

30_000