title: checking files on client side
body: <p>I'm developing  a web site on ASP.Net/MVC 4
  I write this code to check the files if they are exist, but I think it will work only on the server side , how can I do the same process on the client side ? </p>
  
  <pre><code>    string path="c:\\Program Files";
      string[] filesName = Directory.GetDirectories(Path);
      for (int i = 0; i &lt; filesName.Length; i++)
                              {
      ..............
  .......
                              }
  </code></pre>