How to handle non-standard FTP server that doesn't support LIST command?

0 votes
asked Jul 6, 2010 by Jan (140 points)
edited Aug 3, 2010

Hi,

I have to interact with a seemingly non-standard FTP server... So when I do a Ftp.GetList() the server doesn't seem to handle the LIST command, but it CAN handle "LS". How can I get Rebex.Net.Ftp to handle this, preferably without modifying the source? I looked into the Rebex.Net.Ftp source code, but "MLSD" and "NLST" are not supported either by the FTP server.

Regards, Jan.

Applies to: Rebex FTP/SSL

1 Answer

+1 vote
answered Jul 6, 2010 by Lukas Pokorny (103,050 points)
edited Jul 6, 2010

Unfortunately, this is not possible without modifying Rebex FTP source code because the "LIST" command (just like "MLSD" and "NLST" is hard-coded).

However, we have never heard about an FTP server that would accepts LS instead of LIST - are you sure this is the case? And since you have Rebex FTP source code - are you able to successfully call Ftp.GetList if you do modify the source code?

commented Jul 8, 2010 by Jan (140 points)
I've got it working now, using GetNameList(), so it appears that the server DOES handle the NLST command... GetNameList() will suffice for my purposes, so there is no need anymore to hack on the GetList() implementation! Thanks for the fast response, though!
...