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