Exemple #1
0
        private static void ExtractSingleFile(string path, HashFsReader reader)
        {
            var outputPath = Path.Combine(outDir, path.Substring(1));

            Directory.CreateDirectory(Path.GetDirectoryName(outputPath));
            Console.WriteLine($"Extracting {path} ...");
            reader.ExtractToFile(path, outputPath);
        }
Exemple #2
0
 private static void ExtractFiles(HashFsReader r, List <string> files)
 {
     foreach (var file in files)
     {
         var path = Path.Combine(outDir, file.Substring(1));
         r.ExtractToFile(file, path);
     }
 }