mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-09-22 15:04:43 +00:00
Revert "Added ability to leave tar archive open after stream is closed"
This reverts commit 9092ecf331.
This commit is contained in:
@@ -11,13 +11,9 @@ namespace SharpCompress.Writers.Tar
|
||||
{
|
||||
public class TarWriter : AbstractWriter
|
||||
{
|
||||
private readonly bool finalizeArchiveOnClose;
|
||||
|
||||
public TarWriter(Stream destination, WriterOptions options, bool finalizeArchiveOnClose = true)
|
||||
public TarWriter(Stream destination, WriterOptions options)
|
||||
: base(ArchiveType.Tar, options)
|
||||
{
|
||||
this.finalizeArchiveOnClose = finalizeArchiveOnClose;
|
||||
|
||||
if (!destination.CanWrite)
|
||||
{
|
||||
throw new ArgumentException("Tars require writable streams.");
|
||||
@@ -101,10 +97,8 @@ namespace SharpCompress.Writers.Tar
|
||||
{
|
||||
if (isDisposing)
|
||||
{
|
||||
if (finalizeArchiveOnClose){
|
||||
PadTo512(0, true);
|
||||
PadTo512(0, true);
|
||||
}
|
||||
PadTo512(0, true);
|
||||
PadTo512(0, true);
|
||||
switch (OutputStream)
|
||||
{
|
||||
case BZip2Stream b:
|
||||
|
||||
Reference in New Issue
Block a user