Crates.io | path-utils |
lib.rs | path-utils |
version | 0.1.0 |
source | src |
created_at | 2022-09-04 13:41:06.063664 |
updated_at | 2022-09-04 13:41:06.063664 |
description | std::path utilities |
homepage | https://github.com/rust-cli-enthusiasts/path-utils#readme |
repository | https://github.com/rust-cli-enthusiasts/path-utils |
max_upload_size | |
id | 658293 |
size | 17,986 |
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"]);