pub fn read_dir<P: AsRef<path::Path>>(
        &mut self,
        path: P,
    ) -> Result<Box<dyn Iterator<Item = path::PathBuf>>> {
        let itr = self.vfs.read_dir(path.as_ref())?.map(|fname| {
            fname.expect("Could not read file in read_dir()?  Should never happen, I hope!")
        });
        Ok(Box::new(itr))
    }
/// Returns a list of all files and directories in the resource directory,
/// in no particular order.
///
/// Lists the base directory if an empty path is given.
Returns a list of all files and directories in the resource directory,
in no particular order.

Lists the base directory if an empty path is given.
Returns a list of all files and directories in the resource directory in no particular order . Lists the base directory if an empty path is given .
pub fn read_dir<P: AsRef<path::Path>>(
        &mut self,
        path: P,
    ) -> Result<Box<dyn Iterator<Item = path::PathBuf>>> {
        let itr = self.vfs.read_dir(path.as_ref())?.map(|fname| {
            fname.expect("Could not read file in read_dir()?  Should never happen, I hope!")
        });
        Ok(Box::new(itr))
    }
pub fn read_dir < P : AsRef < path :: Path > > ( & mut self , path : P , ) -> Result < Box < dyn Iterator < Item = path :: PathBuf > > > { let itr = self . vfs . read_dir ( path . as_ref ( ) ) ? . map ( | fname | { fname . expect ( " " ) } ) ; Ok ( Box :: new ( itr ) ) }
Returns a list of all files and directories in the resource directory,
in no particular order.
Returns a list of all files and directories in the resource directory in no particular order .
&mut self
path
P
&mut self
path
P