| Crates.io | inspect_path |
| lib.rs | inspect_path |
| version | 0.1.0 |
| created_at | 2026-01-25 06:52:21.665296+00 |
| updated_at | 2026-01-25 06:52:21.665296+00 |
| description | Cross-platform inspection of filesystem paths, including local and remote mounts. |
| homepage | https://github.com/Aurora4891/inspect_path |
| repository | https://github.com/Aurora4891/inspect_path |
| max_upload_size | |
| id | 2068270 |
| size | 24,498 |
inspect_path is a small cross-platform Rust crate for inspecting filesystem paths.
It can determine whether a path refers to a fixed, removable, or remote filesystem,
and can optionally probe whether that path is currently mounted or disconnected.
The crate works on both Windows and Unix-like systems and hides platform-specific details behind a simple, consistent API.
statfsSome filesystem details cannot be inferred on all platforms (for example, Linux cannot always distinguish NTFS backing devices).
use std::path::Path;
use inspect_path::inspect_path;
let info = inspect_path(Path::new(r"C:\")).unwrap();
if info.is_fixed() {
println!("This is a fixed filesystem");
}