node-modules / compressing

Everything you need for compressing and uncompressing
MIT License
428 stars 36 forks source link

error mkdir file exists when decompressing the zip file in Windows #105

Closed grj001 closed 2 months ago

grj001 commented 2 months ago

When decompressing the zip file in Windows, an error occurred and I changed here

mkdir file exists

lib/zip/uncompress_stream.js

const type = /[\\\/]$/.test(entry.fileName) ? 'directory' : 'file';
fengmk2 commented 2 months ago

Can you send a pull request to fix this?

fengmk2 commented 2 months ago

https://github.com/node-modules/compressing/pull/106

fengmk2 commented 2 months ago

@grj001 Thanks a lot!