How do I read the file names from a server directory. For example, in the following example I want to read the all the file names in the "book" directory.
I tried constructing a File object as
File f1 = new File("http://www/google.book
String s = f1.list();
//then read the String Array
but I am getting null pointer exception. I think it is not accepting the format of the path I am sending.