ZipWriter can't create a directory entry #36

Open
opened 2026-01-29 22:03:47 +00:00 by claunia · 5 comments
Owner

Originally created by @scpc0609 on GitHub (Jun 2, 2015).

I am unable to create a directory entry with ZipWriter. If I am not missing, I think this is a serious drawback for such a great library. Can you please include this enhancement? In the meantime, is there any workaround if I am not building from source?

Originally created by @scpc0609 on GitHub (Jun 2, 2015). I am unable to create a directory entry with ZipWriter. If I am not missing, I think this is a serious drawback for such a great library. Can you please include this enhancement? In the meantime, is there any workaround if I am not building from source?
claunia added the bug label 2026-01-29 22:03:47 +00:00
Author
Owner

@adamhathcock commented on GitHub (Jun 2, 2015):

I personally didn't add it because I didn't see the need for empty directory entries and whatnot.

It should be easy to add but I don't have personal time anymore to really work on this directly. Please feel free to submit a pull request.

@adamhathcock commented on GitHub (Jun 2, 2015): I personally didn't add it because I didn't see the need for empty directory entries and whatnot. It should be easy to add but I don't have personal time anymore to really work on this directly. Please feel free to submit a pull request.
Author
Owner

@echofool commented on GitHub (May 4, 2016):

It could be used in some cases,such as some app need an exist directory to access otherwise it will thrown an exception shown that directory not exit or path not exit.

@echofool commented on GitHub (May 4, 2016): It could be used in some cases,such as some app need an exist directory to access otherwise it will thrown an exception shown that directory not exit or path not exit.
Author
Owner

@ghost commented on GitHub (Jan 24, 2017):

Empty folders are strongly necessarily, Imagine one restore a visual studio solution's folder. An empty folder exist in project but it missed in file system.

@ghost commented on GitHub (Jan 24, 2017): Empty folders are strongly necessarily, Imagine one restore a visual studio solution's folder. An empty folder exist in project but it missed in file system.
Author
Owner

@adamhathcock commented on GitHub (Jan 24, 2017):

I think this can be added. Welcome pull requests :)

@adamhathcock commented on GitHub (Jan 24, 2017): I think this can be added. Welcome pull requests :)
Author
Owner

@dos-ise commented on GitHub (Jul 31, 2017):

I have tried to add this in my pullrequest
See 6a4ab2aab5

@dos-ise commented on GitHub (Jul 31, 2017): I have tried to add this in my pullrequest See https://github.com/adamhathcock/sharpcompress/pull/284/commits/6a4ab2aab5472077b7ba772d4aadbb4791952efe
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#36