Changeset 11617 for branches

Show
Ignore:
Timestamp:
11/11/08 10:42:32 (8 weeks ago)
Author:
juruen@…
Message:

remove temp dowload file once it has been downloaded

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/maintenance-0.12-0.12.10/hardy-base/client/ebox/src/EBox/CGI/Controller/Downloader/FromTempDir.pm

    r10662 r11617  
    111111    $self->SUPER::_process(@_); 
    112112} 
     113 
     114# Method: _print 
     115# 
     116# Overrides: 
     117# 
     118#      <EBox::CGI::Controller::Downloader::Base::_print> 
     119# 
     120# To remove the file after it has been downloaded 
     121# 
     122sub _print 
     123{ 
     124    my ($self, @params) = @_; 
     125 
     126    $self->SUPER::_print(@params); 
     127 
     128    unlink ($self->{path}) if ( -e $self->{path} ); 
     129} 
     130 
    1131311; 
    114132