| @@ 459-463 (lines=5) @@ | ||
| 456 | ||
| 457 | foreach($contents as $file) |
|
| 458 | { |
|
| 459 | if(preg_match("/.xcloner-(.*)/",$file['path'])) |
|
| 460 | { |
|
| 461 | $tmp_filesystem->deleteDir($file['path']); |
|
| 462 | $this->logger->info(sprintf("Delete temporary directory %s", $file['path'])); |
|
| 463 | } |
|
| 464 | } |
|
| 465 | ||
| 466 | return true; |
|
| @@ 540-543 (lines=4) @@ | ||
| 537 | ||
| 538 | if($file['type'] == "dir") |
|
| 539 | { |
|
| 540 | if(preg_match("/xcloner-(\w*)/", $file['basename'], $matches)){ |
|
| 541 | $this->logger->info(sprintf('Deleting temporary folder %s', $file['path'])); |
|
| 542 | $this->target_filesystem->deleteDir($file['path']); |
|
| 543 | } |
|
| 544 | } |
|
| 545 | } |
|
| 546 | ||