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); }
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); } }