Ejemplo n.º 1
0
 public function del_backupconf_file($file_pattern, $uuid, $agent)
 {
     $serial_number = $this->serial_number;
     $filename = sprintf($file_pattern, $uuid, $agent);
     // check if file is in dir without extension (.xxx) and returns it with extension.
     $file = IOFile::get_file_inDir($this->archive_base_dir, $filename, false);
     if ($file && file_exists($this->archive_base_dir . '/' . $file)) {
         unlink($this->archive_base_dir . '/' . $file);
     }
     return false;
 }