in reply to rput on foreign sftp in perl
See the Net::SFTP::Foreign documentation.
rput() is for recursively transferring directory contents. put() is for transferring individual files.
See also: setcwd() for changing the remote directory and chdir for changing the local directory.
Unrelated to your problem, but readdir has an example using grep which could greatly improve your code populating @files (in particular, you could get rid of the two until loops and the splice operations).
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: rput on foreign sftp in perl
by Anonymous Monk on Sep 17, 2013 at 14:54 UTC | |
by kcott (Archbishop) on Sep 18, 2013 at 01:43 UTC | |
by Anonymous Monk on Sep 18, 2013 at 03:33 UTC | |
by kcott (Archbishop) on Sep 18, 2013 at 05:10 UTC |