which-fs 0.1.0

Give me a path, I'll tell you the filesystem it's on
Documentation

which-fs-rs

Latest version Documentation License

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)

Usage

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);