Registry / utility / normpath

normpath

JSON →
library1.5.1rscratesunverified

More reliable path manipulation for Rust.

# Cargo.toml [dependencies] normpath = "1.5.1"
INSTALL
IMPORT
SIG · NORMPATH
N
normpath
utilityrustv1.5.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PathExt
use normpath::PathExt;

Normalizes a file path by resolving `.` and `..` components.

use normpath::PathExt; use std::path::Path; fn main() { let path = Path::new("./foo/../bar"); let normalized = path.normalize().unwrap(); println!("Normalized: {:?}", normalized); }
Debug
Known issues
gotchaOn Windows, normalization may behave differently due to path prefixes.
fix
Test on the target platform and consider using `normpath::BasePath` for cross-platform consistency.
affects: >=1.0.0
Upgrade
Version history
1.5.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
normpath — cargo add normpath · libregistry