Skip to main content

same_filesystem_paths

Function same_filesystem_paths 

Source
pub fn same_filesystem_paths(a: &Path, b: &Path) -> bool
Expand description

Whether two existing paths sit on the same filesystem, so a rename can carry a directory from one to the other.

A path that cannot be inspected answers false: a move that cannot be checked is not one to attempt.