path-utils

Crates.iopath-utils
lib.rspath-utils
version0.1.0
sourcesrc
created_at2022-09-04 13:41:06.063664
updated_at2022-09-04 13:41:06.063664
descriptionstd::path utilities
homepagehttps://github.com/rust-cli-enthusiasts/path-utils#readme
repositoryhttps://github.com/rust-cli-enthusiasts/path-utils
max_upload_size
id658293
size17,986
♫ Christian Krause ♫ (wookietreiber)

documentation

https://docs.rs/path-utils

README

path-utils

Utility library for [std::path::Path] and [std::path::PathBuf].

use std::path::Path;
use path_utils::PathExt;

let path = Path::new("file.tar.gz");
let extensions = path.extensions_lossy().collect::<Vec<String>>();
assert_eq!(extensions, ["gz", "tar"]);
Commit count: 5

cargo fmt