Search only particular folder in Directory
<p>I need to search particular folder in directory. </p>

<p>I dont want to go for files, no need to search files. </p>

<p>I can search particular folder in directory but for I have to go for loop of files like </p>

<pre><code>foreach (FileInfo f in dir.EnumerateFiles())
{
      //code
}
foreach (DirectoryInfo d in dir.EnumerateDirectories())
{
   Call function recursively
}
</code></pre>

<p>I need to search particular folder only. Because I have so many files around 20,000 , so If I use above code than loop will go all the files, and take more time.</p>

<p>But I need some folders only like </p>

<pre><code>Regex.IsMatch(dir.FullName, @"1293.*T.*"))
</code></pre>

<p>How can i do that without going in files loop.</p>
