TarArchive.WriteEntry Method

SharpZip Compression Library

SharpZip Compression Library

TarArchive.WriteEntry Method 

Write an entry to the archive. This method will call the putNextEntry and then write the contents of the entry, and finally call closeEntry() for entries that are files. For directories, it will call putNextEntry(), and then, if the recurse flag is true, process each entry that is a child of the directory.

public void WriteEntry(
   TarEntry sourceEntry,
   bool recurse
);

Parameters

sourceEntry
The TarEntry representing the entry to write to the archive.
recurse
If true, process the children of directory entries.

See Also

TarArchive Class | ICSharpCode.SharpZipLib.Tar Namespace