From 2a67534fcb249c50faef8a4275852de5a9b1cd6b Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Wed, 15 May 2024 15:37:31 -0700 Subject: [PATCH] chore: Another bug fix --- src/read.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/read.rs b/src/read.rs index d5502932..bfc767be 100644 --- a/src/read.rs +++ b/src/read.rs @@ -702,9 +702,7 @@ impl ZipArchive { { let target_is_dir = if let Ok(meta) = std::fs::metadata(target_path) { meta.is_dir() - } else if let Some(target_in_archive) = - self.index_for_path(path_to_string(target)) - { + } else if let Some(target_in_archive) = self.index_for_name(&target) { self.by_index_raw(target_in_archive)?.is_dir() } else { false