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 = new;
let fs_kind = detect.unwrap;
println!;
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)
let path = Path::new("/Volumes/My Volume/My Folder");
let fs_kind = which_fs::detect(path).unwrap();
println!("{} is on {}", path.display(), fs_kind);