Skip to content

Commit

Permalink
Update stream.rs to use the is_dir function instead of explicitly che…
Browse files Browse the repository at this point in the history
…cking ZipFile name
  • Loading branch information
brettsimons authored and Pr0methean committed Apr 30, 2024
1 parent 7222347 commit 24f4b98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/read/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl<R: Read> ZipStreamReader<R> {

let outpath = self.0.join(filepath);

if file.name().ends_with('/') {
if file.is_dir() {
fs::create_dir_all(&outpath)?;
} else {
if let Some(p) = outpath.parent() {
Expand Down

0 comments on commit 24f4b98

Please sign in to comment.