lstat

external fun lstat(path: PathLike, callback: (err: ErrnoException?, stats: Stats) -> Unit)(source)

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.

Since

v0.1.30


external fun lstat(path: PathLike, options: LstatOptions?, callback: (err: ErrnoException?, stats: Stats) -> Unit)(source)
external fun lstat(path: PathLike, options: LstatBigIntOptions, callback: (err: ErrnoException?, stats: BigIntStats) -> Unit)(source)
external fun lstat(path: PathLike, options: StatOptions?, callback: (err: ErrnoException?, stats: Any) -> Unit)(source)
suspend fun lstat(path: PathLike, opts: LstatOpts = undefined.unsafeCast<Nothing>()): Stats(source)
suspend fun lstat(path: PathLike, opts: LstatBigIntOpts): BigIntStats(source)
suspend fun lstat(path: PathLike, opts: StatOptions = undefined.unsafeCast<Nothing>()): Any(source)
suspend fun lstat(path: PathLike): Stats(source)