Ende.lstat

function ยท requires --allow-read

function Ende.lstat(path: string | URL): Promise<FileInfo>

Resolves to a Ende.FileInfo for the specified path. If path is a symlink, information for the symlink will be returned instead of what it points to.

import { assert } from "jsr:@ende/assert";
const fileInfo = await Ende.lstat("hello.txt");
assert(fileInfo.isFile);

Requires allow-read permission.