Quantcast
Channel: sharpcompress Discussions Rss Feed
Viewing all articles
Browse latest Browse all 239

New Post: Adding empty directory

$
0
0

Hi,

How would i go around adding a empty directory to a TarArchive?

//adding files works as expectedvar tarArchive = TarArchive.Create();
tarArchive.AddEntry("/some/file1", someMemoryStream, someMemoryStream.FileContent.Length);
//this gets added as a file even though it ends with a directory seperator
tarArchive.AddEntry("/tmp/", new MemoryStream());

Viewing all articles
Browse latest Browse all 239

Trending Articles