http://qs321.pair.com?node_id=182444

justanyone has asked for the wisdom of the Perl Monks concerning the following question:

Hello!

I'm trying to retrieve files and directories off an FTP server where the filenames and directory names both have embedded spaces. Microsoft allows and encourages spaces in filenames, so this is probably common.

I'm trying to use Net::FTP to get a directory listing of a dir with embedded spaces in the name, and also do an FTP get on the files in that directory. Alas, this seems impossible.

The FTP server is "Microsoft FTP Service (Version 5.0)", the client is on Solaris, but I don't think it matters. I'm using Net::FTP 2.64.

I've tried and failed with: