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

    Function open

    • Open a file and resolve to an instance of FileHandle. The file does not need to previously exist if using the create or createNew open options. It is the callers responsibility to close the file when finished with it.

      Parameters

      Returns Promise<FileHandle>

      import { open, BaseDirectory } from "@tauri-apps/plugin-fs"
      const file = await open("foo/bar.txt", { read: true, write: true, baseDir: BaseDirectory.AppLocalData });
      // Do work with file
      await file.close();

      2.0.0