function lstat
Usage in Deno
import { lstat } from "node:fs/promises";
lstat(path: PathLike,opts?: StatOptions & { bigint?: false | undefined; },): Promise<Stats>
Equivalent to fsPromises.stat()
unless path
refers to a symbolic link,
in which case the link itself is stat-ed, not the file that it refers to.
Refer to the POSIX lstat(2)
document for more detail.
path: PathLike
optional
opts: StatOptions & { bigint?: false | undefined; }
Promise<Stats>
Fulfills with the {fs.Stats} object for the given symbolic link path
.
lstat(path: PathLike,opts: StatOptions & { bigint: true; },): Promise<BigIntStats>
path: PathLike
opts: StatOptions & { bigint: true; }
Promise<BigIntStats>
lstat(path: PathLike,opts?: StatOptions,): Promise<Stats | BigIntStats>
path: PathLike
optional
opts: StatOptions
Promise<Stats | BigIntStats>