pub fn same_file(file: &File, path: &Path) -> Result<bool>Expand description
Whether path names the file file is open on now: false when the path
no longer exists, names another file (one removed and created again), or
names a removed file that some handle keeps open (file’s own included):
Windows and an SMB share keep such a name until the last handle closes.
§Errors
When the file’s identity cannot be read.