in reply to question about objects / Net::SFTP

Net::SFTP does not support changing the working remote directory path so you have to handle the path resolution yourself locally (BTW, the do_opendir method is for reading directories).

You can use Net::SFTP::Foreign instead that does support changing the default path.

Replies are listed 'Best First'.
Re^2: question about objects / Net::SFTP
by kurt2439 (Sexton) on Jan 29, 2011 at 00:55 UTC

    Thanks for the great responses guys. I read through Net::SFTP:Foreign and ended up using that one since it made sense to be able to implement the functionality and security of OpenSSH. the setcwd() command did what I needed it to and now my script works great! I thought I was using the correct full path for the Net::SFTP module but I guess I was doing something wrong...anways, now I don't have to deal with that.

    Thanks!