On this page

fileSystem.lstat(path, callback): void
Attributes
callback:(err: ErrnoException | null, result?: IStatsTypes) => void

lstat method

fileSystem.lstat(path, options, callback): void
Attributes
options:StatOptionsTypes & { bigint?: false } | undefined
callback:(err: ErrnoException | null, result?: IStatsTypes) => void

lstat method

fileSystem.lstat(path, options, callback): void
Attributes
options:StatOptionsTypes & { bigint: true }
callback:(err: ErrnoException | null, result?: IBigIntStatsTypes) => void

lstat method

fileSystem.lstat(path, options, callback): void
Attributes
callback:(err: ErrnoException | null, result?: IStatsTypes | IBigIntStatsTypes) => void

lstat method

fileSystem.readdir(path, options, callback): void
Attributes
options:"ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | Object | null | undefined
encoding:"ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | null
recursive:boolean
withFileTypes:false
callback:(err: ErrnoException | null, files?: string[]) => void

readdir method

fileSystem.readdir(path, options, callback): void
Attributes
options:"buffer" | Object
encoding:"buffer"
recursive:boolean
withFileTypes:false
callback:(err: ErrnoException | null, files?: Buffer<ArrayBufferLike>[]) => void

readdir method

fileSystem.readdir(path, options, callback): void
Attributes
options:"ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | ObjectEncodingOptionsTypes & { recursive?: boolean; withFileTypes?: false } | null | undefined
callback:(err: ErrnoException | null, files?: string[] | Buffer<ArrayBufferLike>[]) => void

readdir method

fileSystem.readdir(path, callback): void
Attributes
callback:(err: ErrnoException | null, files?: string[]) => void

readdir method

fileSystem.readdir(path, options, callback): void
Attributes
options:ObjectEncodingOptionsTypes & { recursive?: boolean; withFileTypes: true }
callback:(err: ErrnoException | null, files?: DirentTypes<string>[]) => void

readdir method

fileSystem.readdir(path, options, callback): void
Attributes
options:Object
encoding:"buffer"
recursive:boolean
withFileTypes:true
callback:(err: ErrnoException | null, files: DirentTypes<Buffer<ArrayBufferLike>>[]) => void

readdir method

fileSystem.readFile(path, options, callback): void
Attributes
options:{ encoding?: null; flag?: string } & Abortable | null | undefined
callback:(err: ErrnoException | null, result?: Buffer<ArrayBufferLike>) => void

read file method

fileSystem.readFile(path, options, callback): void
Attributes
options:"ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | { encoding: BufferEncoding; flag?: string } & Abortable
callback:(err: ErrnoException | null, result?: string) => void

read file method

fileSystem.readFile(path, options, callback): void
Attributes
options:"ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | ObjectEncodingOptionsTypes & { flag?: string } & Abortable | null | undefined
callback:(err: ErrnoException | null, result?: string | Buffer<ArrayBufferLike>) => void

read file method

fileSystem.readFile(path, callback): void
Attributes
callback:(err: ErrnoException | null, result?: Buffer<ArrayBufferLike>) => void

read file method

fileSystem.readJson(pathOrFileDescription, callback): void
Attributes
pathOrFileDescription:PathOrFileDescriptorTypes
callback:(err: Error | ErrnoException | null, result?: JsonObjectTypes) => void

read json method

fileSystem.readlink(path, options, callback): void
Attributes
callback:(err: ErrnoException | null, result?: string) => void

read link method

fileSystem.readlink(path, options, callback): void
Attributes
callback:(err: ErrnoException | null, result?: Buffer<ArrayBufferLike>) => void

read link method

fileSystem.readlink(path, options, callback): void
Attributes
callback:(err: ErrnoException | null, result?: string | Buffer<ArrayBufferLike>) => void

read link method

fileSystem.readlink(path, callback): void
Attributes
callback:(err: ErrnoException | null, result?: string) => void

read link method

fileSystem.realpath(path, options, callback): void
Attributes
callback:(err: ErrnoException | null, result?: string) => void

realpath method

fileSystem.realpath(path, options, callback): void
Attributes
callback:(err: ErrnoException | null, result?: Buffer<ArrayBufferLike>) => void

realpath method

fileSystem.realpath(path, options, callback): void
Attributes
callback:(err: ErrnoException | null, result?: string | Buffer<ArrayBufferLike>) => void

realpath method

fileSystem.realpath(path, callback): void
Attributes
callback:(err: ErrnoException | null, result?: string) => void

realpath method

fileSystem.stat(path, callback): void
Attributes
callback:(err: ErrnoException | null, result?: IStatsTypes) => void

stat method

fileSystem.stat(path, options, callback): void
Attributes
options:StatOptionsTypes & { bigint?: false } | undefined
callback:(err: ErrnoException | null, result?: IStatsTypes) => void

stat method

fileSystem.stat(path, options, callback): void
Attributes
options:StatOptionsTypes & { bigint: true }
callback:(err: ErrnoException | null, result?: IBigIntStatsTypes) => void

stat method

fileSystem.stat(path, options, callback): void
Attributes
callback:(err: ErrnoException | null, result?: IStatsTypes | IBigIntStatsTypes) => void

stat method