fn list(&self) -> Result<Vec<String>> {
        let info = self.metadata()?;
        if info.type_ != FileType::Dir {
            return Err(FsError::NotDir);
        }
        Ok((0..)
            .map(|i| self.get_entry(i))
            .take_while(|result| result.is_ok())
            .filter_map(|result| result.ok())
            .collect())
    }
/// Get all directory entries as a Vec
Get all directory entries as a Vec
Get all directory entries as a Vec
fn list(&self) -> Result<Vec<String>> {
        let info = self.metadata()?;
        if info.type_ != FileType::Dir {
            return Err(FsError::NotDir);
        }
        Ok((0..)
            .map(|i| self.get_entry(i))
            .take_while(|result| result.is_ok())
            .filter_map(|result| result.ok())
            .collect())
    }
fn list ( & self ) -> Result < Vec < String > > { let info = self . metadata ( ) ? ; if info . type_ != FileType :: Dir { return Err ( FsError :: NotDir ) ; } Ok ( ( 0 .. ) . map ( | i | self . get_entry ( i ) ) . take_while ( | result | result . is_ok ( ) ) . filter_map ( | result | result . ok ( ) ) . collect ( ) ) }
Get all directory entries as a Vec
Get all directory entries as a Vec
&self
&self