http://www.perlmonks.org?node_id=989980


in reply to CWD to directory which name contain spaces

If it is Microsoft, How about "One TW~1" ?
like "Progra~1" works on windows instead of "Program Files"?

Replies are listed 'Best First'.
Re^2: CWD to directory which name contain spaces
by ism (Initiate) on Aug 27, 2012 at 13:33 UTC
    Thank you for your answer! Unfortunately it also doesn't work for me. I really don't understand what happening. When i try perform the same commands in cli like:

    ftp> cd "/Folder/Somefolder/ONE TWO Three/_Some_Path/ONE TWO Three Pat +h1"
    everything is ok. directory is changing. But execution the same commands through script doesn't work.

      Do you see something when you set Debug level higher?

      $ftp = Net::FTP->new("some.host.name", Debug => 0) or die "Cannot connect to some.host.name: $@";