# file

> A pluggable, mockable file system abstraction for Dart

Source: https://talira.ai/catalog/file-kkzyaxhc
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / filesystem](https://talira.ai/categories/libraries/filesystem)
- Licence: BSD-3-Clause[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Backed by: [Google](https://talira.ai/orgs/google.md)
- Funding: public company (NASDAQ:GOOGL)[^2]

file is the [Dart](https://talira.ai/catalog/dart-3askvstd.md) team's file system abstraction: a Dart-idiomatic API like `dart:io`'s, where a file system is an object you pass around. It comes with a local file system, an in-memory one that makes code touching files easy to test, and the interfaces for implementing your own, and several file systems can be used at once. It lives in the dart-lang/tools mono-repo and is published on pub.dev by tools.dart.dev.

## Links

- GitHub: https://github.com/dart-lang/tools
- Docs: https://pub.dev/packages/file

## Problems it solves

- test Dart code that reads and writes files without touching the real disk
- swap the file system my Dart code uses for an in-memory fake in tests
- implement a custom virtual file system in Dart

## Features

- In-memory file system for tests
- Local file system with a dart:io-like API
- Interfaces for custom file systems
- Several file systems in one program

## Trust

Overall: 0.63 out of 1.
Signals: maintenance 1.00, adoption 0.42, momentum 0.17, community 0.99, backing 0.55, extensibility 0.00.

- last commit 4 days ago
- 202 commits in the last 90 days
- latest release api_summary-v1.3.0 4 days ago
- 123 GitHub stars
- 302 contributors
- backed by Google
- funding: public company (NASDAQ:GOOGL)

## Related

- Works with [Dart](https://talira.ai/catalog/dart-3askvstd.md)

## Sources

[^1]: https://github.com/dart-lang/tools/blob/main/pkgs/file/LICENSE (checked 26 Nov 2026)
[^2]: https://www.sec.gov/files/company_tickers_exchange.json (checked 20 Nov 2026)
