Problem with space as first character

Developer
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
/Test/ MyFolder

I can do

CWD /Test

but 

CWD /Test/ MyFolder/

or

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)

in

public void SetWorkingDirectory(string path)

of FtpClient.cs that return this. 

Coordinator
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.