コード例 #1
0
        public async Task <string> MergeAndDecompress(IEnumerable <string> orderedPartsPaths, string outputDir)
        {
            var contnt = await SevenZipper2.DecompressFromSplit
                             (orderedPartsPaths, outputDir);

            if (contnt.Count() < 1)
            {
                throw Fault.NoItems("archive contents");
            }

            if (contnt.Count() > 1)
            {
                throw Fault.NonSolo("archive contents", contnt.Count());
            }

            return(contnt.Single());
        }
コード例 #2
0
 public Task <IEnumerable <string> > CompressAndSplit
     (string filePath, double maxPartSizeMB)
 => SevenZipper2.CompressAndSplit(filePath, maxPartSizeMB);