rickbassham / sharp-ftp-server

Asynchronous ftp server written in C#. Extensible to support any telnet type server (SMTP, POP3, etc.).
71 stars 37 forks source link

Encapsulate working directory with ". #3

Open ngjermundshaug opened 8 years ago

ngjermundshaug commented 8 years ago

Missing implementation of RFC 959. Makes FileZilla and other clients unable to download files/folder with spaces in the names.

From RFC 959:

Essentially because the PWD command returns the same type of information as the successful MKD command, the successful PWD command uses the 257 reply code as well.

....upon successful completion of an MKD command, the server should return a line of the form:

257<space>"<directory-name>"<space><commentary>

That is, the server will tell the user what string to use when referring to the created directory. The directory name can contain any character; embedded double-quotes should be escaped by double-quotes (the "quote-doubling" convention)."