# which-fs-rs
[](https://crates.io/crates/which-fs)
[](https://docs.rs/which-fs)

Give me a path, I'll tell you the filesystem it's on
Works on Windows, Linux, and macOS
> [!WARNING]
> This library only supports some popular filesystems (see [here](https://docs.rs/which-fs/latest/which_fs/enum.FsKind.html))
### Usage
As a library:
```rust
let path = Path::new("/Volumes/My Volume/My Folder");
let fs_kind = which_fs::FsKind::try_from_path(path).unwrap();
println!("{} is on a {} filesystem", path.display(), fs_kind);
```
As a cli:
```sh
% which-fs .
Filesystem: APFS
```