Skip to content
Lucent
Esc
↑↓navigate↵open
On this page

FileSystemError

Describes a failed filesystem action.

class FileSystemError extends { _tag: "FileSystemError"; operation: "exists" | "list" | "read-json" | "read-text" | "remove" | "write-json" | "write-text"; path?: string; reason: "unavailable" | "not-found" | "invalid-path" | "not-file" | "not-directory" | "directory-not-empty" | "too-large" | "too-many-entries" | "invalid-utf8" | "invalid-json" | "not-json-serializable" | "permission-denied" | "busy" | "session-closed" } & YieldableError<this>

Defined in filesystem.ts:48

Properties

message

readonly message: string

operation

readonly operation: "exists" | "list" | "read-json" | "read-text" | "remove" | "write-json" | "write-text"

path

readonly path?: string

reason

readonly reason: "unavailable" | "not-found" | "invalid-path" | "not-file" | "not-directory" | "directory-not-empty" | "too-large" | "too-many-entries" | "invalid-utf8" | "invalid-json" | "not-json-serializable" | "permission-denied" | "busy" | "session-closed"
Type preview
Open page

Last updated on September 26, 2026

Was this page helpful?