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 ?
string path="c:\\Program Files";
string[] filesName = Directory.GetDirectories(Path);
for (int i = 0; i < filesName.Length; i++)
{
..............
.......
}