docs.rs failed to build inspect_path-0.4.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
inspect_path-0.5.2
inspect_path
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.
Features
- Detects filesystem path type
- Fixed disks
- Removable media
- Network / remote mounts
- CD-ROM and RAM disks
- Identifies remote filesystem types when possible
- Windows shares (SMB / CIFS)
- NFS
- AFS
- Allows probing a path to determine mount status
- Platform-specific implementations with a shared public API
Platform Support
Windows
- Fixed drives
- Removable drives
- CD-ROM drives
- RAM disks
- Network shares (UNC paths and mapped drives)
Unix / Linux
- Local filesystems (ext4, xfs, btrfs, etc.)
- Network filesystems (NFS, SMB/CIFS, AFS)
- tmpfs and optical media
- Uses filesystem magic numbers via
statfs
Some filesystem details cannot be inferred on all platforms (for example, Linux cannot always distinguish NTFS backing devices).
Usage
Inspecting a path
use Path;
use inspect_path;
let info = inspect_path.unwrap;
if info.is_fixed