in reply to Re^8: Perl sftp behavior when there are no files in the share
in thread Perl sftp behavior when there are no files in the share
This is actually two replies in one. First, thanks (and ++) to Corion for pointing out the mistake in my solution above.
Now Bindo, your question for a solution without CPAN... I think doing SFTP in pure Perl, while possible, would be difficult and error-prone. If you just don't want any additional CPAN modules, that's another question:
As far as I see, your $REM_FILE already is a file name without directory, so you don't need the basename function and module, and can simply
Perhaps that already does what you want. Update: second parameter in get corrected$sftp->get($REM_FILE, $REM_FILE, callback => \&show_progress)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: Perl sftp behavior when there are no files in the share
by Bindo (Acolyte) on Apr 05, 2013 at 11:51 UTC | |
by soonix (Chancellor) on Apr 06, 2013 at 07:08 UTC | |
by Bindo (Acolyte) on Apr 07, 2013 at 04:12 UTC |