Example #1
0
        public async Task Decompress(string sourceFile, string targetDirectory)
        {
            sourceFile      = sourceFile.GetFileFullName();
            targetDirectory = targetDirectory.GetDirectoryFullName();

            ProcessHelper decompressionProcess = ProcessHelper.Create(Executable,
                                                                      GenerateDecompressionArguments(sourceFile, targetDirectory));

            await decompressionProcess.RunAsync();
        }
Example #2
0
        public async Task Compress(string sourceDirectory, string targetFile, CompressionLevel level)
        {
            int compressionLevel = level.CompressionLevelToZPAC();

            sourceDirectory = sourceDirectory.GetDirectoryFullName();

            ProcessHelper compressionProcess = ProcessHelper.Create(Executable,
                                                                    GenerateCompressionArguments(sourceDirectory, targetFile, compressionLevel));

            await compressionProcess.RunAsync();
        }