This crate provides methods to normalize paths in the recommended way for the operating system.
It was made to fix a recurring bug caused by using [fs::canonicalize
] on
Windows: [#45067], [#48249], [#52440], [#55812], [#58613], [#59107], [#74327].
Normalization is usually a better choice unless you specifically need a
canonical path.
Add the following lines to your "Cargo.toml" file:
toml
[dependencies]
normpath = "0.2"
See the [documentation] for available functionality and examples.
The minimum supported Rust toolchain version is currently Rust 1.41.0.
Licensing terms are specified in [COPYRIGHT].
Unless you explicitly state otherwise, any contribution submitted for inclusion in this crate, as defined in [LICENSE-APACHE], shall be licensed according to [COPYRIGHT], without any additional terms or conditions.
This crate includes copies and modifications of software developed by third parties:
See those files for more details.
Copies of third-party licenses can be found in [LICENSE-THIRD-PARTY].