Registry / utility / path-absolutize

path-absolutize

JSON →
library3.1.1rscratesunverified

A library for extending `Path` and `PathBuf` in order to get an absolute path and remove the containing dots.

# Cargo.toml [dependencies] path-absolutize = "3.1.1"
INSTALL
IMPORT
SIG · PATH-ABSOLUTIZE
P
path-absolutize
utilityrustv3.1.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.

Absolutize
use path_absolutize::Absolutize;

Convert a relative path with dots to an absolute path.

use path_absolutize::Absolutize; use std::path::Path; fn main() { let path = Path::new("./foo/../bar"); let absolute = path.absolutize().unwrap(); println!("{:?}", absolute); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.1.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
path-absolutize — cargo add path-absolutize · libregistry