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?

  • Comment on Re^11: Perl sftp behavior when there are no files in the share

Replies are listed 'Best First'.
Re^12: Perl sftp behavior when there are no files in the share
by Bindo (Acolyte) on Apr 07, 2013 at 04:12 UTC

    Thanks again Mr Soonix. Yes sir files get downloaded with no problems. Will try what you suggested too and let you know. I think there is a problem with the net:sftp foreign with regard to it's call back feature. May be that is the reason I couldnt find a single person on the net who has gotten it to work.