pub fn path_entry_exists(path: &Path) -> Result<bool>
Report whether any filesystem entry occupies path, including a dangling symbolic link. Unlike Path::exists, this does not follow the final link.
path
Path::exists