We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e5978a commit 615bbb9Copy full SHA for 615bbb9
rust/src/files.rs
@@ -60,7 +60,7 @@ pub fn unzip(file: File, target: PathBuf) {
60
61
for i in 0..archive.len() {
62
let mut file = archive.by_index(i).unwrap();
63
- if (file.name()).ends_with('/') {
+ if (file.name()).ends_with('/') || target.file_name().unwrap().to_str().unwrap() != file.name() {
64
continue;
65
} else {
66
log::debug!("File extracted to {} ({} bytes)", target.display(), file.size());
0 commit comments