which-fs 0.0.4

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

which-fs-rs

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::detect(path).unwrap();
println!("{} is on {}", path.display(), fs_kind);