I had this basic question. Suppose I have a directory on my computer C:\Abc\New. Now I can access this directory using :
File file = new File("C:\\Abc\\New");
Now I can open all the files inside this directory using :
File[] files = file.listFiles();
And I can process the files individually the way I want to.
Suppose I want to do a similar thing to a directory on the web. Then how do I go about it? I cannot use a File object here. How do I map a URL to a File object? In other words, how can I access all the files stored at a directory in the above manner.
Any help will be greatly appreciated.