private static void WriteQarArchive(QarFile qarFile, string workingDirectory) { string outputPath = Path.Combine(workingDirectory, qarFile.Name); string fileSystemInputDirectory = Path.Combine(workingDirectory, Path.GetFileNameWithoutExtension(qarFile.Name)); IDirectory inputDirectory = new FileSystemDirectory(fileSystemInputDirectory); using (FileStream output = new FileStream(outputPath, FileMode.Create)) { qarFile.Write(output, inputDirectory); } }
public static QarFile ReadQarFile(Stream input) { QarFile qarFile = new QarFile(); qarFile.Read(input); return qarFile; }