Stuk / jszip

Create, read and edit .zip files with Javascript
https://stuk.github.io/jszip/
Other
9.81k stars 1.3k forks source link

Same zip different zipContents when loadAsync #908

Open Mihai-github opened 1 year ago

Mihai-github commented 1 year ago

I've encountered a perplexing situation that I'm struggling to explain. I have a ZIP file that I downloaded from the internet and then extracted its contents. Afterward, I zipped the contents back into a ZIP file without making any changes. However, when I use const directory = zipContents.folder("folder_name");, I observe a difference between the two scenarios.

In one case, the structure of the extracted content appears as zip_name/folder_name, while in the other, which came from the internet, it's simply folder_name. This discrepancy is causing a problem with my functionality, and I'm unsure why it's happening, as there should be no discernible difference in the content itself."