in reply to how copy dir in NET::SFTP

I think Net::SFTP::Recursive will do exactly what you need.

jdtoronto