Skip to main content

paths_on_same_device

Function paths_on_same_device 

Source
fn paths_on_same_device(
    path1: impl AsRef<Path>,
    path2: impl AsRef<Path>,
) -> Result<bool, Error>
Expand description

Checks whether path1 and path2 are on the same device.

ยงErrors

Returns an error, if the metadata for path1 or path2 cannot be retrieved.