Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
456 views
in .NET FTP by

Hi,

I am using edtFTPNetPRO (v. 8.5.0.20) to access a FTP site programatically. I am getting "No files found. (code=550)" with IFileTransferClient.Dir() in an empty directory. I tried the edtFTPNetPRO-included FTP client on the same FTP server. What I found is that when accessing an empty directory, the "ls" command gives me the same error.

"ls" works fine when used against non-empty directory, while "dir" command works with both empty and non-empty directories. The FTP server is Serv-U V15.1. The admin told me that he had no problem with "ls" command in the empty folder with his FTP client.

I also get the following stack trace with IFileTransferClient.Dir():

EnterpriseDT.Net.Ftp.FTPException: No files found. (code=550)
   at EnterpriseDT.Net.Ftp.FTPControlSocket.ValidateReply(FTPReply reply, String[] expectedReplyCodes)
   at EnterpriseDT.Net.Ftp.FTPClient.DjNffDJD8S(String , Boolean , INxk0XmkqecketxFa5M , Object )
   at EnterpriseDT.Net.Ftp.FTPClient.Dir(String dirname, Boolean full)
   at EnterpriseDT.Net.Ftp.FTPClient.Dir()
   at ClayTablet.CT2.Net.SitecoreNet.ProviderSenderJob.Process() in

Any idea on what is going on here? What I can do to fix the issue?

Thanks,

Yu

 

1 Answer

0 votes
by (2.7k points)

You should be able to handle this by adding "No files found" to the property called DirectoryEmptyStrings.

Categories

...