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§
Sourcefn join_stem(&self, stem: &OsStr, extension: &str) -> PathBuf
fn join_stem(&self, stem: &OsStr, extension: &str) -> PathBuf
Join a stem (eg. from some other filename) with this path
and add an extenion.
Sourcefn file_ends_with(&self, suffix: &str) -> bool
fn file_ends_with(&self, suffix: &str) -> bool
Returns true if filename (last path component)
end in suffix.