SevenZipArchive doesn't include folders in entries #160

Closed
opened 2026-01-29 22:07:34 +00:00 by claunia · 2 comments
Owner

Originally created by @mnadareski on GitHub (Mar 16, 2017).

I have a 7z file that includes a couple of blank folders. In my code, I was taking into account that blank folders were supposed to be treated specially, but when I ran it, the list of entries that was output when opening the archive included only the files. All folders should be included as entries as well, just like for the other archive types.

Originally created by @mnadareski on GitHub (Mar 16, 2017). I have a 7z file that includes a couple of blank folders. In my code, I was taking into account that blank folders were supposed to be treated specially, but when I ran it, the list of entries that was output when opening the archive included only the files. All folders should be included as entries as well, just like for the other archive types.
Author
Owner

@mnadareski commented on GitHub (Mar 16, 2017):

More clarification, I found the code that would need a quick change: SevenZipArchive.cs#L109. If I have the time, I'll submit a pull request with the requested change.

@mnadareski commented on GitHub (Mar 16, 2017): More clarification, I found the code that would need a quick change: [SevenZipArchive.cs#L109](https://github.com/adamhathcock/sharpcompress/blob/master/src/SharpCompress/Archives/SevenZip/SevenZipArchive.cs#L109). If I have the time, I'll submit a pull request with the requested change.
Author
Owner

@mnadareski commented on GitHub (Mar 17, 2017):

Looks like this was accepted as a merge. Closing this now.

@mnadareski commented on GitHub (Mar 17, 2017): Looks like this was accepted as a merge. Closing this now.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#160