Problem with space as first character

Sep 11, 2012 at 11:02 PM
Edited Sep 11, 2012 at 11:05 PM

When I have create a folder with a space as first character, it cannot set it as working directory.

For example if I have:

/Test/ MyFolder

I can do

CWD /Test


CWD /Test/ MyFolder/


CWD  MyFolder/


doesn't work, it always returns "550 no such file".

I've tried with FileZilla it works.
Do you have any idea of what could happen ?

I've looked at the source, and the this the call to:

this.Execute("CWD {0}", path)


public void SetWorkingDirectory(string path)

of FtpClient.cs that return this. 

Sep 12, 2012 at 11:33 PM

Maybe a text encoding issue? I'll have to dig into this as well, not sure what's going on off the top of my head.