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

    Function stat

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

      Parameters

      Returns 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