Can't get the root folder in some zip file. #412

Open
opened 2026-01-29 22:11:31 +00:00 by claunia · 0 comments
Owner

Originally created by @kyuranger on GitHub (Sep 27, 2020).

Here is the sample of the zip file:
https://1drv.ms/u/s!AtcqjirAlaGYi4gSHBFiyRiNpU3sVg?e=d7NX60

And here is my code:
var archive = ZipArchive.Open(filename);
archive.Entries.ToList().ForEach(X =>
{
Debug.WriteLine(X.Key);
});

It will output all the file and folder except the root folder below:
k-sample-dl-h3101/

What's wrong with this? Is it a bug? Thank you.

Originally created by @kyuranger on GitHub (Sep 27, 2020). Here is the sample of the zip file: https://1drv.ms/u/s!AtcqjirAlaGYi4gSHBFiyRiNpU3sVg?e=d7NX60 And here is my code: var archive = ZipArchive.Open(filename); archive.Entries.ToList().ForEach(X => { Debug.WriteLine(X.Key); }); It will output all the file and folder except the root folder below: k-sample-dl-h3101/ What's wrong with this? Is it a bug? Thank you.
claunia added the questionnot bug labels 2026-01-29 22:11:31 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#412