Discuss (FTP) and (SFTP, FTPS and SCP), our Java file transfer clients.
no avatar
User

gwheez829

Posts

3

Joined

Wed Feb 09, 2011 6:16 am

Directory listing empty - but not

by gwheez829 » Thu Jun 23, 2011 4:56 am

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
no avatar
User

gwheez829

Posts

3

Joined

Wed Feb 09, 2011 6:16 am

by gwheez829 » Thu Jun 23, 2011 6:36 am

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.

Who is online

Users browsing this forum: No registered users and 122 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron