How can I add more directories to my file deletion program?
<p>I'm trying to use this to delete all .htm files in certain in a couple of directories I have by using recursion. So far it works fine with just one folder, but I haven't been able to find a way to add more than one folder to the code. Is there any way i can add more directories to the directory path so I don't have to keep changing the code every time I want it to delete files in another directory?</p>

<pre><code>namespace ConsoleApplication
{
    class Deleter
    {
        static void Main(string[] args)
        {
            string directorypath = @"C:\Public\";
            string[] directories = System.IO.Directory.GetDirectories(directorypath);
            DeleteDirectories(directories);
        }
        private static void DeleteDirectories(string[] directories)
        {
            foreach (string directory in directories)
            {
                string[] files = System.IO.Directory.GetFiles(directory, "*.htm");
                DeleteFiles(files);
                directories = System.IO.Directory.GetDirectories(directory);
                DeleteDirectories(directories);
            }
        }
        private static void DeleteFiles(string[] files)
        {
            foreach (string file in files)
            {
                FileInfo f = new FileInfo(file);
                if (f.CreationTime &lt; DateTime.Now)
                    f.Delete();
            }
        }
    }
}
</code></pre>
