/// <summary> /// Process blank folders in an archive /// </summary> /// <param name="datFile">Current DatFile object to add to</param> /// <param name="item">File containing the blanks</param> /// <param name="basePath">Path the represents the parent directory</param> /// <param name="archive">BaseArchive to get blanks from</param> private static void ProcessArchiveBlanks(DatFile datFile, string item, string basePath, BaseArchive archive) { List <string> empties = new List <string>(); // Get the parent path for all items string parent = (Path.GetDirectoryName(Path.GetFullPath(item)) + Path.DirectorySeparatorChar).Remove(0, basePath.Length) + Path.GetFileNameWithoutExtension(item); // Now get all blank folders from the archive if (archive != null) { empties = archive.GetEmptyFolders(); } // Add add all of the found empties to the DAT Parallel.ForEach(empties, Globals.ParallelOptions, empty => { Rom emptyRom = new Rom(Path.Combine(empty, "_"), item); ProcessFileHelper(datFile, item, emptyRom, basePath, parent); }); }