pub fn render_to_fs(&self, target_dir: impl AsRef<Path>) {
        for mut w in self.walk_virtual_files() {
            let absolute_path = target_dir.as_ref().join(&w.path);
            if w.is_dir {
                fs::create_dir_all(absolute_path);
            } else {
                fs::create_dir_all(absolute_path.parent().unwrap());
                let mut file = File::create(absolute_path).unwrap();
                io::copy(&mut *w.reader, &mut file);
            }
        }
    }
/// Creates this directory structure on the file system in the specified target directory.
Creates this directory structure on the file system in the specified target directory.
Creates this directory structure on the file system in the specified target directory .
pub fn render_to_fs(&self, target_dir: impl AsRef<Path>) {
        for mut w in self.walk_virtual_files() {
            let absolute_path = target_dir.as_ref().join(&w.path);
            if w.is_dir {
                fs::create_dir_all(absolute_path);
            } else {
                fs::create_dir_all(absolute_path.parent().unwrap());
                let mut file = File::create(absolute_path).unwrap();
                io::copy(&mut *w.reader, &mut file);
            }
        }
    }
pub fn render_to_fs ( & self , target_dir : impl AsRef < Path > ) { for mut w in self . walk_virtual_files ( ) { let absolute_path = target_dir . as_ref ( ) . join ( & w . path ) ; if w . is_dir { fs :: create_dir_all ( absolute_path ) ; } else { fs :: create_dir_all ( absolute_path . parent ( ) . unwrap ( ) ) ; let mut file = File :: create ( absolute_path ) . unwrap ( ) ; io :: copy ( & mut * w . reader , & mut file ) ; } } }
Creates this directory structure on the file system in the specified target directory.
Creates this directory structure on the file system in the specified target directory .
&self
target_dir
impl AsRef<Path>