lstat
lstat(
path
,options?
):Promise
<FileInfo
>
Defined in: plugins/fs/guest-js/index.ts:982
Resolves to a FileInfo
for the specified path
. If path
is a
symlink, information for the symlink will be returned instead of what it
points to.
string
| URL
Promise
<FileInfo
>
import { lstat, BaseDirectory } from '@tauri-apps/plugin-fs';const fileInfo = await lstat("hello.txt", { baseDir: BaseDirectory.AppLocalData });console.log(fileInfo.isFile); // true
2.0.0
© 2025 Tauri Contributors. CC-BY / MIT