stat
stat(
path
,options?
):Promise
<FileInfo
>
Defined in: plugins/fs/guest-js/index.ts:956
Resolves to a FileInfo
for the specified path
. Will always
follow symlinks but will reject if the symlink points to a path outside of the scope.
string
| URL
Promise
<FileInfo
>
import { stat, BaseDirectory } from '@tauri-apps/plugin-fs';const fileInfo = await stat("hello.txt", { baseDir: BaseDirectory.AppLocalData });console.log(fileInfo.isFile); // true
2.0.0
© 2025 Tauri Contributors. CC-BY / MIT