Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.6k views
in Java FTP by (200 points)
Using edtFTPnetPro version 7.4.0.20.
The GetFileInfos() method of FTPConnection object is returning 0 in collection, but I can see there are files on the ftp server when connecting and doing a directory listing in command prompt. When I turn on debugging, there are no errors, just this:
DEBUG [FTPControlSocket] 22 Jun 2011 10:48:17.866 : ---> LIST *
DEBUG [FTPControlSocket] 22 Jun 2011 10:48:18.373 : 150 Opening data connection for '/bin/ls'.
DEBUG [FTPClient] 22 Jun 2011 10:48:18.376 : Reading ASCII listing data
DEBUG [FTPActiveDataSocket] 22 Jun 2011 10:48:18.379 : AcceptConnection() succeeded
DEBUG [FTPControlSocket] 22 Jun 2011 10:48:18.767 : 226 Transfer complete.
DEBUG [FTPClient] 22 Jun 2011 10:48:18.767 : No listing data found

The only thing out of the ordinary I see in the manual listing is that there is 1 file which does not follow same format as others.
1 is listed as follows: -rw-rw-r-- 1 <directory> ftp <size> Month Day Year <file name>
All other files: -rw-rw-r-- 1 <directory> ftp <size> Month Day Hour:seconds <file name>

This directory listing was working, and started returning empty listing around same time file not following same pattern was posted. Could this be the problem? Ideas on other possible causes? Fixes?

Thanks,
Therese

1 Answer

0 votes
by (200 points)
Resolved issue.
Passing * as file mask to the list command was the issue. Passing no mask caused it to return entire contents of directory.

So the mystery is why the ftp server was ok with the * mask, and then suddenly not. If anyone has seen similar behavior, I would be curious what the resolution was for you.

Categories

...