Hi
I am unable to get the following code to work
public void printCurrentDirectory() {
try{
// get directory and print it to console
System.out.println("Directory: ");
String[] files = ftp.dir(".", true);
for (int i = 0; i < files.length; i++)
System.out.println(files[i]);
} catch (FTPException exFTP) {
System.out.println("FTP Exception " + exFTP.getMessage());
} catch (Exception ex) {}
Basically this is the code taken from your Demo.java example.
It fails (throws exception) on the files = ftp.dir... line. with message "file not found"
Can you help?
Kieran