pub fn recover_path(&self) -> io::Result<PathBuf> {
        match self.0 {
            DirFd::Fd(fd) => read_link(format!("/proc/self/fd/{}", fd)),
            DirFd::Cwd => read_link(format!("/proc/self/cwd")),
        }
    }
/// Get the path of this directory (if possible)
///
/// This uses symlinks in `/proc/self`, they sometimes may not be
/// available so use with care.
Get the path of this directory (if possible)
This uses symlinks in `/proc/self`, they sometimes may not be
available so use with care.
Get the path of this directory ( if possible ) This uses symlinks in ` / proc / self ` they sometimes may not be available so use with care .
pub fn recover_path(&self) -> io::Result<PathBuf> {
        match self.0 {
            DirFd::Fd(fd) => read_link(format!("/proc/self/fd/{}", fd)),
            DirFd::Cwd => read_link(format!("/proc/self/cwd")),
        }
    }
pub fn recover_path ( & self ) -> io :: Result < PathBuf > { match self . 0 { DirFd :: Fd ( fd ) => read_link ( format ! ( " " fd ) ) , DirFd :: Cwd => read_link ( format ! ( " " ) ) , } }
Get the path of this directory (if possible)
This uses symlinks in `/proc/self`, they sometimes may not be
available so use with care.
Get the path of this directory ( if possible ) This uses symlinks in ` / proc / self ` they sometimes may not be available so use with care .
&self
&self