Skip to content

lstat

Module @netwiv/api/plugins/fs · Kind Function

import { lstat } from '@netwiv/api/plugins/fs';

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

function lstat(path: string | URL, options?: StatOptions | undefined): Promise<FileInfo>
import { lstat, BaseDirectory } from '@netwiv/api/plugins/fs';
const fileInfo = await lstat("hello.txt", { baseDir: BaseDirectory.AppLocalData });
console.log(fileInfo.isFile); // true

Upstream since 2.0.0


Descriptions come from the pinned @tauri-apps/plugin-fs@2.5.2 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.