in reply to Net::SFTP::Foreign Puzzle

You should try the development version of Net::SFTP::Foreign that has a better API. Specifically, remote file and directory handles are automatically closed when they go out of scope.

BTW, you don't really need to check if the remote directory exist, just try to create it and the command will fail (doing nothing) if it is already there.

Replies are listed 'Best First'.
Re^2: Net::SFTP::Foreign Puzzle
by SheridanCat (Pilgrim) on Jul 08, 2006 at 03:30 UTC
    Thanks, salva. That's the behavior I was counting on with the current implementation. I'll check it out.