PathExt

Trait PathExt 

Source
pub trait PathExt {
    // Required methods
    fn join_stem(&self, stem: &OsStr, extension: &str) -> PathBuf;
    fn file_ends_with(&self, suffix: &str) -> bool;
}
Expand description

Path extension

Required Methods§

Source

fn join_stem(&self, stem: &OsStr, extension: &str) -> PathBuf

Join a stem (eg. from some other filename) with this path and add an extenion.

Source

fn file_ends_with(&self, suffix: &str) -> bool

Returns true if filename (last path component) end in suffix.

Implementors§