C#:Getting all image files in folder
<p>I am trying to get all images from folder but ,this folder also include sub folders. like  /photos/person1/  and /photos/person2/ .I can get photos in folder like </p>

<pre><code>  path= System.IO.Directory.GetCurrentDirectory() + "/photo/" + groupNO + "/";
 public List&lt;String&gt; GetImagesPath(String folderName)
    {

        DirectoryInfo Folder;
        FileInfo[] Images;

        Folder = new DirectoryInfo(folderName);
        Images = Folder.GetFiles();
        List&lt;String&gt; imagesList = new List&lt;String&gt;();

        for (int i = 0; i &lt; Images.Length; i++)
        {
            imagesList.Add(String.Format(@"{0}/{1}", folderName, Images[i].Name));
           // Console.WriteLine(String.Format(@"{0}/{1}", folderName, Images[i].Name));
        }


        return imagesList;
    }
</code></pre>

<p>But how can I get all photos in all sub folders? I mean I want to get all photos in /photo/ directory at once.</p>
