Dear edtFTPj users.
I'm using FTPClient and trying to givea list command on a directory as follows -
String command = full ? "LIST ":"NLST ";
String reply = control.sendCommand(command + mask);
mask is "*.*" and full cab true or false.
Its returning a valid code 150.
Then I'm getting the inputreader as -
InputStreamReader in = new InputStreamReader(sock.getInputStream());
BufferedReader bIn = new BufferedReader(in);
After reading the output, I'm trying to validate the reply -
String[] validCodes2 = {"226", "250"};
reply = control.readReply();
here reply is 550, and this is giving an exception -
"No files found or invalid directory or permission problem"
What can be the problem, why does it return 550?
Please help.
Thanks in advance.
Best Regards
Shamik