Ejemplo n.º 1
0
    public static void LoadBaseFileLists(FileDB db)
    {
        // Open directory with file lists and load them all
        FileInfo[] files;

        try
        {
            files = new DirectoryInfo(BaseFileListsFolder).GetFiles(ListFileNameFilter);
        }
        catch (Exception e)
        {
            ConsoleUtil.WriteLineColor(String.Format("Couldn't open base file collection directory {0}: {1}",
                                                     BaseFileListsFolder, e.Message), ConsoleColor.Red);
            return;
        }

        foreach (FileInfo file in files)
        {
            Load(file.FullName, db);
            db.DisplayStatsToConsole();
        }
    }