diff --git a/src/read.rs b/src/read.rs index 797ce1a3..8defc4ba 100644 --- a/src/read.rs +++ b/src/read.rs @@ -710,7 +710,8 @@ impl ZipArchive { self .shared .files - .get_index(file_number) + .get_index(target_in_archive) + .unwrap() .is_dir() } else { false