http://www.perlmonks.org?node_id=1027257


in reply to Re^10: Perl sftp behavior when there are no files in the share
in thread Perl sftp behavior when there are no files in the share

But the files are transferred and the other print statements are executed?

If I understand Net::SFTP::Foreign correctly, the callback function should be executed at least once per call to ->get.

Maybe it is overwritten too quickly - what if you remove the \r or replace it with \n?