Lets assume the following function:
private void ParseFolder(string strFolder)
{
foreach (string currentFolder in Directory.GetDirectories(strFolder))
ParseFolder(strFolder);
}
Now we start our recursive loop with:
ParseFolder("C:\");
Is there a way to be notified when this recusrive loop ends (= all directories have been parsed)?