mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
Can't get the root folder in some zip file. #412
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.