Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
 public static QarFile ReadQarFile(Stream input)
 {
     QarFile qarFile = new QarFile();
     qarFile.Read(input);
     return qarFile;
 }