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:
- Net::FTP->dir("\"abc def\"");
- Net::FTP->dir("\'abc def\'");
- Net::FTP->dir("abc\ def");
- Net::FTP->dir("abc%20def");
- Comment on Net::FTP->dir("abc def"); embedded spaces in filename fails.
Originally posted as a Categorized Question.
Replies are listed 'Best First'. | |
---|---|
Re: Net::FTP->dir(
by amphiplex (Monk) on Jul 17, 2002 at 15:09 UTC | |
Re: Net::FTP->dir(
by fedelman (Novice) on Jan 22, 2004 at 18:39 UTC |
Back to
Seekers of Perl Wisdom