You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encountered an error unzipping an archive that appears to be a special case. I'm actually using gulp-decompress but the cause appears to be in this module.
Symptoms:
One of the directories within the zip file is incorrectly identified as a file instead of a directory.
An empty file is created instead of a directory.
The unzip operation fails when it then attempts to unzip the files within that directory as the OS attempts to create a directory of the same name as the file.
Possible cause:
The entry in question has a externalFileAttributes value of 0x00110000. This fails the equality comparison with16 because 0x00100000 is set.
I don't know enough about what the 0x00100000 bit is for to know if getType(entry, mode) should really be just checking for 0x00010000 being set, rather than an exact equality.
I tested using new zip archives that I created with 7zip and Windows right-click > Send to > Compressed (zipped) folder. Both of them worked correctly.
I am unable to share the zip file here as it's an installer for licensed software. I also have no idea how it was produced. However, I am happy to answer any questions or run additional tests as needed.
The text was updated successfully, but these errors were encountered:
I've encountered an error unzipping an archive that appears to be a special case. I'm actually using
gulp-decompress
but the cause appears to be in this module.Symptoms:
Possible cause:
externalFileAttributes
value of0x00110000
. This fails the equality comparison with16
because0x00100000
is set.I don't know enough about what the
0x00100000
bit is for to know ifgetType(entry, mode)
should really be just checking for0x00010000
being set, rather than an exact equality.I tested using new zip archives that I created with 7zip and Windows right-click > Send to > Compressed (zipped) folder. Both of them worked correctly.
I am unable to share the zip file here as it's an installer for licensed software. I also have no idea how it was produced. However, I am happy to answer any questions or run additional tests as needed.
The text was updated successfully, but these errors were encountered: