mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
ZipWriter can't create a directory entry #36
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 @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?
@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.
@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.
@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.
@adamhathcock commented on GitHub (Jan 24, 2017):
I think this can be added. Welcome pull requests :)
@dos-ise commented on GitHub (Jul 31, 2017):
I have tried to add this in my pullrequest
See
6a4ab2aab5