Skip to content

Commit

Permalink
grin v5.3 (0075) Update zip dependency and fix deprecation warnings (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
bayk committed Jun 17, 2024
1 parent 308966c commit 521421f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/src/zip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub fn extract_files(from_archive: File, dest: &Path, files: Vec<PathBuf>) -> io
let mut archive = zip_rs::ZipArchive::new(from_archive).expect("archive file exists");
for x in files {
if let Ok(file) = archive.by_name(x.to_str().expect("valid path")) {
let path = dest.join(file.name());
let path = dest.join(file.mangled_name());
let parent_dir = path.parent().expect("valid parent dir");
fs::create_dir_all(&parent_dir).expect("create parent dir");
let outfile = fs::File::create(&path).expect("file created");
Expand Down

0 comments on commit 521421f

Please sign in to comment.