From aecdf4e3e619c60f43b372486927f4daff26a00f Mon Sep 17 00:00:00 2001 From: Boni Garcia Date: Thu, 27 Oct 2022 14:39:19 +0200 Subject: [PATCH] [rust] Fix msedgedriver uncompression in Selenium Manager --- rust/src/files.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/files.rs b/rust/src/files.rs index db9a6aa4849cc..f9d08b2587c5c 100644 --- a/rust/src/files.rs +++ b/rust/src/files.rs @@ -60,7 +60,7 @@ pub fn unzip(file: File, target: PathBuf) { for i in 0..archive.len() { let mut file = archive.by_index(i).unwrap(); - if (file.name()).ends_with('/') { + if (file.name()).ends_with('/') || target.file_name().unwrap().to_str().unwrap() != file.name() { continue; } else { log::debug!("File extracted to {} ({} bytes)", target.display(), file.size());