Skip to content

Commit 615bbb9

Browse files
authored
[rust] Fix msedgedriver uncompression in Selenium Manager (#11180)
1 parent 4e5978a commit 615bbb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/src/files.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pub fn unzip(file: File, target: PathBuf) {
6060

6161
for i in 0..archive.len() {
6262
let mut file = archive.by_index(i).unwrap();
63-
if (file.name()).ends_with('/') {
63+
if (file.name()).ends_with('/') || target.file_name().unwrap().to_str().unwrap() != file.name() {
6464
continue;
6565
} else {
6666
log::debug!("File extracted to {} ({} bytes)", target.display(), file.size());

0 commit comments

Comments
 (0)