title: List all files from a URL in a Console Application
body: <p>I'm trying to get all the files located in a URL. 
  When you access the URL in the browser, all files are being listed so I thought I could also print these files in my console program.</p>
  
  <p>Apprently, my code below doesn't work and throws <code>System.ArgumentException "URI formats are not supported."</code> . Or is it really possible to achieve this in a Console Application using C#?</p>
  
  <pre><code>class Program
  {
      public static void Main(string[] args)
      {
          foreach (string filename in Directory.GetFiles(@"http://mywebsite.files/", "*.*"))
          {
              Console.WriteLine(filename);
          }
  
          Console.Write("Press any key to continue . . . ");
          Console.ReadKey(true);
      }
  }
  </code></pre>