# @tauri-apps/plugin-fs

> Access the file system.

Latest version **2.7.1** (published 2026-10-14) · MIT OR Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @tauri-apps/plugin-fs
pnpm add @tauri-apps/plugin-fs
yarn add @tauri-apps/plugin-fs
bun add @tauri-apps/plugin-fs
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.7.1 |
| Published | 2026-10-14 |
| First published | 2023-05-24 |
| Weekly downloads | 0 |
| License | MIT OR Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 121.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1841 |
| Maintainers | nothingismagick, lucasfernog, tauri-apps-ci-user, jbolda, fabianlars, amrbashir, beanow |

## Links

- npm: https://www.npmjs.com/package/@tauri-apps/plugin-fs
- Repository: https://github.com/tauri-apps/plugins-workspace
- Homepage: https://github.com/tauri-apps/plugins-workspace#readme
- Issues: https://github.com/tauri-apps/plugins-workspace/issues
- npm.io page: https://npm.io/package/@tauri-apps/plugin-fs

## Dependencies (1)

- [@tauri-apps/api](https://npm.io/package/@tauri-apps/api.md) ^2.12.0

## Recent versions

- 2.7.1 (latest) — 2026-10-14
- 3.0.0-alpha.3 (next) — 2026-10-14
- 2.7.0 — 2026-10-10
- 3.0.0-alpha.2 — 2026-09-30
- 2.6.0 — 2026-09-26
- 3.0.0-alpha.1 — 2026-09-21
- 3.0.0-alpha.0 — 2026-09-13
- 2.5.2 — 2026-08-31
- 2.5.1 — 2026-05-02
- 2.5.0 — 2026-04-04
- 2.4.5 — 2026-01-08
- 2.4.4 — 2025-10-27
- 2.4.3 — 2025-10-26
- 2.4.2 — 2025-08-20
- 2.4.1 — 2025-07-20
- … 28 more at https://npm.io/package/@tauri-apps/plugin-fs/versions

## README

![plugin-fs](https://github.com/tauri-apps/plugins-workspace/raw/v2/plugins/fs/banner.png)

Access the file system.

| Platform | Supported |
| -------- | --------- |
| Linux    | ✓         |
| Windows  | ✓         |
| macOS    | ✓         |
| Android  | ✓         |
| iOS      | ✓         |

## Install

_This plugin requires a Rust version of at least **1.90**_

There are three general methods of installation that we can recommend.

1. Use crates.io and npm (easiest, and requires you to trust that our publishing pipeline worked)
2. Pull sources directly from Github using git tags / revision hashes (most secure)
3. Git submodule install this repo in your tauri project and then use file protocol to ingest the source (most secure, but inconvenient to use)

Install the Core plugin by adding the following to your `Cargo.toml` file:

`src-tauri/Cargo.toml`

```toml
[dependencies]
tauri-plugin-fs = "2.0.0"
# alternatively with Git:
tauri-plugin-fs = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
```

You can install the JavaScript Guest bindings using your preferred JavaScript package manager:

```sh
pnpm add @tauri-apps/plugin-fs
# or
npm add @tauri-apps/plugin-fs
# or
yarn add @tauri-apps/plugin-fs
```

## Usage

First you need to register the core plugin with Tauri:

`src-tauri/src/lib.rs`

```rust
fn main() {
    tauri::Builder::default()
        .plugin(tauri_plugin_fs::init())
        .run(tauri::generate_context!())
        .expect("error while running tauri application");
}
```

Afterwards all the plugin's APIs are available through the JavaScript guest bindings:

```javascript
import { stat } from '@tauri-apps/plugin-fs'

await stat('/path/to/file')
```

## Contributing

PRs accepted. Please make sure to read the Contributing Guide before making a pull request.

## Partners

<table>
  <tbody>
    <tr>
      <td align="center" valign="middle">
        <a href="https://crabnebula.dev" target="_blank">
          <img src="https://github.com/tauri-apps/plugins-workspace/raw/v2/.github/sponsors/crabnebula.svg" alt="CrabNebula" width="283">
        </a>
      </td>
    </tr>
  </tbody>
</table>

For the complete list of sponsors please visit our [website](https://tauri.app#sponsors) and [Open Collective](https://opencollective.com/tauri).

## License

Code: (c) 2015 - Present - The Tauri Programme within The Commons Conservancy.

MIT or MIT/Apache 2.0 where applicable.

---
_Source: https://npm.io/package/@tauri-apps/plugin-fs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
