title: How can I perform full recursive directory & file scan?
body: <p>here is my code:</p>
  
  <pre><code>    private static void TreeScan(string sDir)
      {
          foreach (string d in Directory.GetDirectories(sDir))
          {
              foreach (string f in Directory.GetFiles(d))
              {
                  //Save file f
              }
          }
          TreeScan(d, client);
      }
  </code></pre>
  
  <p>The problem is that it doesn't get the <strong>FILES</strong> of the <strong>sDir</strong> <em>(Starting Directory)</em> it only gets the Folders and the Files in the Sub Folders.</p>
  
  <p><strong>How can I make it get the files from the sDir too ?</strong></p>