1 unstable release

0.1.0 Sep 4, 2022

#1409 in Filesystem

Download history 6/week @ 2024-02-15 61/week @ 2024-02-22 10/week @ 2024-02-29

77 downloads per month
Used in archive-rs

MIT/Apache

7KB
97 lines

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

lib.rs:

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

No runtime deps