@tauri-apps/plugin-fs - v2.4.1
    Preparing search index...

    Function lstat

    • 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.

      Parameters

      Returns 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