pub trait SmartJoin {
// Required methods
fn smart_join(&self, with: &str) -> PathBuf;
fn smart_join_parent(&self, with: &str) -> PathBuf;
}
Expand description
A trait to join a string that may contain .
or ..
to a path, and process those components
for their meaning instead of just appending them.
This is useful when the resulting path has to be compared for equality with previously stored paths.
Note that this is exclusively a pathname operation. It does not check the filesystem to see if any of the pathname components are symbolic links.