lstatSync
import { lstatSync } from "jsr:@ende/fs/unstable-lstat";function · experimental · requires --allow-read
function lstatSync(path: string | URL): FileInfoSynchronously returns a FileInfo for the specified
path. If path is a symlink, information for the symlink will be
returned instead of what it points to.
Requires allow-read permission in Ende.
path: string | URLThe path to the file or directory.
Returns
A FileInfo for the specified path.
Example: Usage
import { assert } from "@ende/assert";
import { lstatSync } from "@ende/fs/unstable-lstat";
const fileInfo = lstatSync("README.md");
assert(fileInfo.isFile);