in reply to Re^3: Net::SFTP::Recursive problems
in thread Net::SFTP::Recursive problems

But with Net::SFTP::Foreign , I can't use a password for my connection

Well, actually you can, using Expect. See the passwd_conn.pl script on the samples directory from the module distribution.