Function find_mountpoint::find_mountpoint
[−]
[src]
pub fn find_mountpoint(path: &Path) -> Result<PathBuf, Error>
Find the prefix (drive letter or UNC path / sharepoint) for the provided paths.
Canonicalizes the path before calling find_mountpoint_pre_canonicalized
. Because
canonicalization produces a PathBuf
, lifetime management requires returning an owned path,
hence returns a PathBuf
instead of a reference to a Path.