fn dir_path(dir: &File) -> Result<PathBuf>
The canonical path of an opened directory, read from the descriptor itself. A platform that cannot answer fails closed.