TarWriterOptions.cs 668 B

1234567891011121314151617181920212223
  1. using SharpCompress.Archives;
  2. using SharpCompress.Common;
  3. namespace SharpCompress.Writers.Tar
  4. {
  5. public class TarWriterOptions : WriterOptions
  6. {
  7. /// <summary>
  8. /// Indicates if archive should be finalized (by 2 empty blocks) on close.
  9. /// </summary>
  10. public bool FinalizeArchiveOnClose { get; }
  11. public TarWriterOptions(CompressionType compressionType, bool finalizeArchiveOnClose)
  12. : base(compressionType)
  13. {
  14. FinalizeArchiveOnClose = finalizeArchiveOnClose;
  15. }
  16. internal TarWriterOptions(WriterOptions options) : this(options.CompressionType, true)
  17. {
  18. }
  19. }
  20. }