curl-library
Re: FTP, mkdir and escaping invalid characters
Date: Mon, 25 Jan 2010 11:43:23 -0600
On Mon, Jan 25, 2010 at 10:57 AM, Nick Jensen wrote:
I guess the main thing you need to escape is whitespace, otherwise
the server thinks you're passing too many arguments to MKD.
As far as what is valid (and sane) on different systems, that depends
on the server, the operating system, and the filesystem.
Not sure if there is a "good cross-platform solution" but:
% pathchk -p <filename>
on Linux will give you some idea of what POSIX recommends.
You might also find some good reading here:
http://en.wikipedia.org/wiki/Filename
- Jeff
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-01-25