import {Filer} from '@fuzdev/gro/filer.js'; root_dir
type PathId
files
type Map<PathId, Disknode>
constructor
type new (options?: FilerOptions): Filer
options
EMPTY_OBJECTget_by_id
type (id: PathId) => Disknode | undefined
get_or_create
type (id: PathId) => Disknode
filter
type (predicate: (disknode: Disknode) => boolean): Disknode[] | null
predicate
(disknode: Disknode) => booleanDisknode[] | 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>
Promise<void>watch
type (listener: OnFilerChange): Promise<() => void>
listener
Promise<() => void>close
type (): Promise<void>
Promise<void>inited
type boolean