fn validate_extracted(dir: &Dir, path: &Path) {
    // Check if all the subdirectories exist, recursing on each
    for subdir in dir.dirs() {
        let subdir_path = path.join(dir.path());
        assert!(subdir_path.exists());
        validate_extracted(subdir, &subdir_path);
    }

    // Check if the files at the root of this directory exist
    for file in dir.files() {
        let file_path = path.join(file.path());
        assert!(file_path.exists());
    }
}
// Validates that all files in the inclusion were extracted to the filesystem
Validates that all files in the inclusion were extracted to the filesystem
Validates that all files in the inclusion were extracted to the filesystem
fn validate_extracted(dir: &Dir, path: &Path) {
    // Check if all the subdirectories exist, recursing on each
    for subdir in dir.dirs() {
        let subdir_path = path.join(dir.path());
        assert!(subdir_path.exists());
        validate_extracted(subdir, &subdir_path);
    }
    // Check if the files at the root of this directory exist
    for file in dir.files() {
        let file_path = path.join(file.path());
        assert!(file_path.exists());
    }
}
fn validate_extracted ( dir : & Dir , path : & Path ) { // Check if all the subdirectories exist, recursing on each for subdir in dir . dirs ( ) { let subdir_path = path . join ( dir . path ( ) ) ; assert ! ( subdir_path exists ( ) ) ; validate_extracted ( subdir , & subdir_path ) ; } // Check if the files at the root of this directory exist for file in dir . files ( ) { let file_path = path . join ( file . path ( ) ) ; assert ! ( file_path exists ( ) ) ; } }
Validates that all files in the inclusion were extracted to the filesystem
Validates that all files in the inclusion were extracted to the filesystem
dir
&Dir
path
&Path
dir
&Dir
path
&Path