Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 281 Bytes

README.md

File metadata and controls

12 lines (9 loc) · 281 Bytes

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"]);