Function find_mountpoint::find_mountpoint
[−]
[src]
pub fn find_mountpoint(path: &Path) -> Result<PathBuf, Error>
Find the mountpoint for the volume containing the provided path.
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.