path-utils 0.1.0

std::path utilities
Documentation
  • Coverage
  • 100%
    4 out of 4 items documented2 out of 4 items with examples
  • Size
  • Source code size: 17.64 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.19 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • rust-cli-enthusiasts/path-utils
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • wookietreiber

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