adamhathcock / sharpcompress

SharpCompress is a fully managed C# library to deal with many compression types and formats.
MIT License
2.22k stars 476 forks source link

How do I add empty directories to a tar archive? #808

Open mrconter1 opened 4 months ago

mrconter1 commented 4 months ago

Hello!

I am trying to tar a folder with empty folder inside but they doesn't seem to be added. Is it not possible to add empty folders/directories to a tar archive?

adamhathcock commented 4 months ago

Possibly not. When I wrote things a while back, I considered empty directories a bug. I probably was wrong. Git also has this issue.