Registry / utility / clean-path

clean-path

JSON →
library0.2.1rscratesunverified

A safe fork of the `path-clean` crate for normalizing file paths.

# Cargo.toml [dependencies] clean-path = "0.2.1"
INSTALL
IMPORT
SIG · CLEAN-PATH
C
clean-path
utilityrustv0.2.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.

PathClean
✓ use clean_path::PathClean;

Normalize a path by resolving `.` and `..` components.

use clean_path::PathClean; use std::path::Path; fn main() { let dirty = Path::new("/foo/bar/../baz"); let clean = dirty.clean(); println!("{:?}", clean); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
clean-path — cargo add clean-path · libregistry