Esempio n. 1
0
 public AddCommand(InvocationContext context,
                   string archive,
                   List <string> input,
                   string relativeTo,
                   ArcFileFormat format,
                   CompressionLevel compressionLevel,
                   bool safeWrite,
                   bool preserveCase,
                   int?headerAreaSize = null,
                   int?chunkSize      = null)
     : base(context, archive, input, relativeTo, format, compressionLevel,
            safeWrite, preserveCase, headerAreaSize, chunkSize)
 {
 }
Esempio n. 2
0
 public RebuildCommand(InvocationContext context,
                       string archive,
                       ArcFileFormat format,
                       CompressionLevel compressionLevel,
                       bool preserveStore,
                       bool safeWrite,
                       int?headerAreaSize = null,
                       int?chunkSize      = null)
     : base(context)
 {
     ArchivePath      = archive;
     Format           = format;
     CompressionLevel = compressionLevel;
     PreserveStore    = preserveStore;
     SafeWrite        = safeWrite;
     HeaderAreaSize   = headerAreaSize;
     ChunkSize        = chunkSize;
 }
Esempio n. 3
0
 protected ProcessFileSystemEntriesCommand(InvocationContext context,
                                           string archive,
                                           List <string> input,
                                           string relativeTo,
                                           ArcFileFormat format,
                                           CompressionLevel compressionLevel,
                                           bool safeWrite,
                                           bool preserveCase,
                                           int?headerAreaSize = null,
                                           int?chunkSize      = null)
     : base(context)
 {
     ArchivePath      = archive;
     InputPaths       = input;
     RelativeToPath   = relativeTo;
     Format           = format;
     CompressionLevel = compressionLevel;
     SafeWrite        = safeWrite;
     PreserveCase     = preserveCase;
     HeaderAreaSize   = headerAreaSize;
     ChunkSize        = chunkSize;
 }
Esempio n. 4
0
 private static string FormatTag(ArcFileFormat format) =>
     format.Version switch
     {
         1 => "tq",
         3 => "gd",