From aca750d616ff3293ce7973e715d3371494aae131 Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Wed, 15 May 2024 15:57:54 -0700 Subject: [PATCH] chore: Bug fix: variable name change --- src/read.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)