Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Delete files from server after downloading using SFTP

by hbm (Hermit)
on Jun 11, 2013 at 21:15 UTC ( #1038341=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
       sub removeRemoteFile {
          my $file = shift;
          return FALSE;
  2. or download this
       sub removeRemoteFile {
          my %args = @_;
          return FALSE;
  3. or download this
       sub getFile {
          my %args  =  @_;
          unlink "$args{LOCAL}/$name"   if -f "$args{LOCAL}/$name";
          return FALSE;
  4. or download this
       for my $file ( ... ) {
          if (getFile( ... )) {
             warn "Couldn't download $args{REMOTE}/$file!\n";

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1038341]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2016-07-29 05:15 GMT
Find Nodes?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?

    Results (259 votes). Check out past polls.