pathbufools 0.1.1

Additional helper methods for PathBuf
Documentation
  • Coverage
  • 0%
    0 out of 7 items documented0 out of 6 items with examples
  • Size
  • Source code size: 7.68 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 816.25 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • rabite0/pathbuftools
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • rabite0
pathbufools-0.1.1 has been yanked.

pathtbuftools

pathbuftools is a small library that adds some helper methods which are useful when working with PathBufs.

This mostly usefuly when you're doing low-level stuff with files. I factored this library out of hunter, so for the most part it contains stuff I needed there, plus a bit more I stopped using.

Available methods and their singatures are:

fn short_path(&self) -> PathBuf;
fn short_string(&self) -> String;
fn name_starts_with(&self, pat: &str) -> bool;
fn quoted_file_name(&self) -> Option<OsString>;
fn quoted_path(&self) -> OsString;

NOTE: short_path() removes the $HOME component of a Path and replaces it with ~, so "/home/foo/bar" becomes "~/bar".