OptionallstatSync
lstatSync?: (path: string) => Stats
Optionalpromises
promises?: {
lstat?: (path: string) => Promise<Stats>;
readdir?: (
path: string,
options: { withFileTypes: true },
) => Promise<Dirent<string>[]>;
readlink?: (path: string) => Promise<string>;
realpath?: (path: string) => Promise<string>;
[k: string]: any;
}
Optionalreaddir
readdir?: (
path: string,
options: { withFileTypes: true },
cb: (er: ErrnoException | null, entries?: Dirent<string>[]) => any,
) => void
OptionalreaddirSync
readdirSync?: (
path: string,
options: { withFileTypes: true },
) => Dirent<string>[]
OptionalreadlinkSync
readlinkSync?: (path: string) => string
OptionalrealpathSync
realpathSync?: (path: string) => string
An object that will be used to override the default
fsmethods. Any methods that are not overridden will use Node's built-in implementations.withFileTypesDirent variant, used for readdirCB and most walks)