pub trait PathExt: Sealed {
fn ensure_extension<S: AsRef<OsStr>>(&self, extension: S) -> Cow<'_, Path>;
fn get_absolute(&self) -> Result<PathBuf>;
fn is_hidden(&self) -> bool;
}
Available on crate feature
fs
only.Expand description
Extension trait for Path for common functionality in BP3D software.
Required Methods§
sourcefn get_absolute(&self) -> Result<PathBuf>
fn get_absolute(&self) -> Result<PathBuf>
Checks if this path is hidden in the current platform’s file explorer.