Skip to main content
Version: Next

lstat

function lstat(path): Promise<FileInfo>;

Get the status of a file by path.

note

This api doesn't follow symbolic link.

Parameters

ParameterTypeDescription

path

string

File path.

Returns

Promise<FileInfo>

It resolves to the file status.

See

RsvimFs.stat

Throws

Throws TypeError if the file name is invalid. Or throws Error if failed to get file status.

Example

const fstat = await Rsvim.fs.lstat("README.md");