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.

asked 06 Jul '10, 13:36

Jan's gravatar image

Jan
16
accept rate: 0%


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?

link

answered 06 Jul '10, 21:50

Lukas%20Pokorny's gravatar image

Lukas Pokorny ♦♦
2.2k18
accept rate: 32%

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!

(08 Jul '10, 11:41) Jan
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×136
×12

Asked: 06 Jul '10, 13:36

Seen: 496 times

Last updated: 03 Aug '10, 23:23