in reply to how copy dir in NET::SFTP
I will tell you that SFTP is VERY finicky about filenames, paths, and full filenames (must be the fullpath to the file, NOT relative paths).