in reply to Re^2: cwd of remote server using Net::FTP
in thread cwd of remote server using Net::FTP

Net::FTP behaves in the same way as your command line ftp. I bet that, if you ftp from command line to the same site, then issue a pwd command, you will get the same thing, the root.

So this is not a problem with Net::FTP module, but rather the server is configured in this way, and that was what you supposed to get. I tried to ftp ftp.sun.com, that was what I got.

However this is not always what you get. When I try to ftp to a UNIX node on your company's network that I have account, I was led to my home directory.

  • Comment on Re^3: cwd of remote server using Net::FTP