// Open a directory at the given `relative_path` with the provided flags.
Open a directory at the given `relative_path` with the provided flags.
Open a directory at the given ` relative_path ` with the provided flags .
pub fn open_dir<P: AsRef<Path>>(&self, relative_path: P, flags: u32) -> Result<Self> {
        let path = self.path.join(relative_path.as_ref());
        let relative_path = match relative_path.as_ref().to_str() {
            Some(relative_path) => relative_path,
            None => return Err(format_err!("Could not convert relative path to &str")),
        };
        match open_directory_no_describe(&self.proxy, relative_path, flags) {
            Ok(proxy) => Ok(Self { path, proxy }),
            Err(e) => Err(format_err!("Could not open dir `{}`: {}", path.as_path().display(), e)),
        }
    }
pub fn open_dir < P : AsRef < Path > > ( & self , relative_path : P , flags : u32 ) -> Result < Self > { let path = self . path . join ( relative_path . as_ref ( ) ) ; let relative_path = match relative_path . as_ref ( ) . to_str ( ) { Some ( relative_path ) => relative_path , None => return Err ( format_err ! ( " " ) ) , } ; match open_directory_no_describe ( & self . proxy , relative_path , flags ) { Ok ( proxy ) => Ok ( Self { path , proxy } ) , Err ( e ) => Err ( format_err ! ( " " path as_path ( ) display ( ) e ) ) , } }
Open a directory at the given `relative_path` with the provided flags.
Open a directory at the given ` relative_path ` with the provided flags .
&self
relative_path
P
flags
u32