Skip to content

๐Ÿ” Give me a path, I'll tell you the filesystem it's on

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

mq1/which-fs-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

28 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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

As a library:

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:

% which-fs .
Filesystem: APFS

About

๐Ÿ” Give me a path, I'll tell you the filesystem it's on

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages