tags:

views:

85

answers:

1

I'm using Net::FTP to put a file on a remote server. I need to put the file in a folder whose name contains a space character. The cwd() method seems to not like the following arguments and nothing seems to work.

$ftp->cwd('My Folder')

$ftp->cwd('"My Folder"')

$ftp->cwd('\"My Folder\"')

Has anyone done this before? How do I cwd into "My Folder" ?

TIA.

+3  A: 

Just tried this and it worked fine:

$ftp->cwd('My Folder');
jheddings