root_dir
type PathId
readonly
files
type Map<PathId, Disknode>
readonly
constructor
type new (options?: FilerOptions): Filer
options
type FilerOptions
default
EMPTY_OBJECTget_by_id
get_or_create
filter
type (predicate: (disknode: Disknode) => boolean): Disknode[] | null
predicate
type
(disknode: Disknode) => booleanreturns
Disknode[] | nullinit
Initialize the filer to populate files without watching. Safe to call multiple times - subsequent calls are no-ops. Used by gen files to access the file graph.
type (): Promise<void>
returns
Promise<void>watch
type (listener: OnFilerChange): Promise<() => void>
listener
type OnFilerChange
returns
Promise<() => void>close
type (): Promise<void>
returns
Promise<void>