private void saveFile(string path, string imageName, ExtractedFile f, Stream s) { path = Path.Combine(path, f.DiscType.ToString(), imageName + "_" + f.DiscId8); if (f.PartitionId != null) { path = Path.Combine(path, f.PartitionId); } path = Path.Combine(path, SourceFiles.PathFix(f.Path.TrimStart('/'))); Directory.CreateDirectory(path); using (Stream b = File.OpenWrite(Path.Combine(path, f.Name))) s.Copy(b, f.Length); }
private static string pathFix(string path) { return(SourceFiles.PathFix(path)); }