curl-library
Re: FTP, mkdir and escaping invalid characters
Date: Mon, 25 Jan 2010 21:43:30 +0100 (CET)
On Mon, 25 Jan 2010, Nick Jensen wrote:
Please don't top-post. See the netiquette url.
> The CURLOPT for FTP_CREATE_MISSING_DIRS seems to work pretty well across
> multiple platforms. The directories get created correctly, regardless of
> whitespace and/or special characters. So there has to be some kind of string
> sanitizing happening there, right? Maybe I could apply this same logic on my
> custom MKD command strings? Could anyone point me in the right direction for
> this code?
No, it makes no "sanitizing" since there is no such thing needed really
according to the FTP spec. MKD commands are issued the same way - with the
path part being the same - as CWD commands are.
If you enable CURLOPT_VERBOSE you can easily check that out yourself!
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-01-25