Changeset 11528 for trunk

Show
Ignore:
Timestamp:
10/24/08 17:03:05 (2 months ago)
Author:
juruen@…
Message:

+ Remove temp file after it is downloaded with FromTempDir? controller

Location:
trunk/client/ebox
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/client/ebox/ChangeLog

    r11518 r11528  
    55        + Refresh logs automatically 
    66        + Reverse log order 
     7        + Remove temp file after it is downloaded with FromTempDir controller 
    780.12.3 
    89        + Bug fix: use the new API in purge method. Now purging logs is working 
  • trunk/client/ebox/src/EBox/CGI/Controller/Downloader/FromTempDir.pm

    r10662 r11528  
    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