Skip to content

Commit

Permalink
Update uncompress_stream.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 authored May 23, 2024
1 parent 64482e0 commit 8da569b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zip/uncompress_stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class ZipUncompressStream extends UncompressBaseStream {
entry.fileName = iconv.decode(entry.fileName, this._zipFileNameEncoding);
}
}
// directory file names end with '/'
// directory file names end with '/' (for Linux and macOS) or '\' (for Windows)
const type = /[\\\/]$/.test(entry.fileName) ? 'directory' : 'file';
const name = entry.fileName = this[STRIP_NAME](entry.fileName, type);

Expand Down

0 comments on commit 8da569b

Please sign in to comment.