function lstat
Jump to headinglstat(): void
Retrieves the fs.Stats
for the symbolic link referred to by the path.
The callback gets two arguments (err, stats)
where stats
is a fs.Stats
object. lstat()
is identical to stat()
, except that if path
is a symbolic
link, then the link itself is stat-ed, not the file that it refers to.
See the POSIX lstat(2)
documentation for more details.
Parameters Jump to heading
Jump to headingpath: PathLike
Jump to headingcallback: (err: ErrnoException | null,stats: Stats,) => void
Return Type Jump to heading
void
Jump to headinglstat(path: PathLike,options: (StatOptions & { bigint?: false | undefined; }) | undefined,callback: (err: ErrnoException | null,stats: Stats,) => void,): void
Parameters Jump to heading
Jump to headingpath: PathLike
Jump to headingoptions: (StatOptions & { bigint?: false | undefined; }) | undefined
Jump to headingcallback: (err: ErrnoException | null,stats: Stats,) => void
Return Type Jump to heading
void
Jump to headinglstat(path: PathLike,options: StatOptions & { bigint: true; },callback: (err: ErrnoException | null,stats: BigIntStats,) => void,): void
Parameters Jump to heading
Jump to headingpath: PathLike
Jump to headingoptions: StatOptions & { bigint: true; }
Jump to headingcallback: (err: ErrnoException | null,stats: BigIntStats,) => void
Return Type Jump to heading
void
Jump to headinglstat(path: PathLike,options: StatOptions | undefined,callback: (err: ErrnoException | null,stats: Stats | BigIntStats,) => void,): void
Parameters Jump to heading
Jump to headingpath: PathLike
Jump to headingoptions: StatOptions | undefined
Jump to headingcallback: (err: ErrnoException | null,stats: Stats | BigIntStats,) => void
Return Type Jump to heading
void