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.
FileInfo
path
Optional
import { lstat, BaseDirectory } from '@tauri-apps/plugin-fs';const fileInfo = await lstat("hello.txt", { baseDir: BaseDirectory.AppLocalData });console.log(fileInfo.isFile); // true Copy
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
Resolves to a
FileInfo
for the specifiedpath
. Ifpath
is a symlink, information for the symlink will be returned instead of what it points to.