diff --git a/src/read.rs b/src/read.rs index 66ad1359..837e45aa 100644 --- a/src/read.rs +++ b/src/read.rs @@ -703,7 +703,7 @@ impl ZipArchive { let target_internal_path: PathBuf = target.into(); let target_path = directory.as_ref().join(target_internal_path.clone()); let target_is_dir = - if let Ok(meta) = std::fs::metadata(target_absolute_path) { + if let Ok(meta) = std::fs::metadata(target_path) { meta.is_dir() } else if let Some(target_in_archive) = self.index_for_path(&target_internal_path)