I'm trying to download all files in a remote directory that meet a file spec. I'm able to successfully connect to the remote server, and can download a single file successfully using DownloadFile(localdir, remotefile).
However, whenever I try to download multiple files using DownloadMultiple(localdir, wildcard), it takes no action. From what I can see in the log, it seems to be issuing a "LIST -a" command to the server to get the list of files in the directory on the remote server to be downloaded.
My thought to get around the problem was to get the list of files, and download each individually. However, GetFiles() appears to be issuing an "NLST -a" command to get the list of remote files. When I inspect LastValidReply.ReplyText after calling GetFiles(), I see the error "-a: No such file or directory."
When I issue a LIST or NLST command via the InvokeFTPCommand method, I don't get this error, but I can't get to the results of the commands (nothing seems to get stored in the LastValidReply.ReplyData array).
It would seem that edtFTPnet/PRO is issuing the commands with a "-a" parameter to force ASCII mode in the return values, but the remote server I'm trying to connect to doesn't accept "-a" as a parameter. I can successfully connect and run LIST and NLST through the WS_FTP client.
I have no control over the remote server.
Help!