Checks if a directory exists on the server.
public boolean dirExists(String URL);
Use this method to check if the URL exists and is accessible.