* @param bool $verbose
*/
public function run($verbose = false) {
+ if ($verbose) {
+ printf("Cleaning up %s ...\n", $this->rm);
+ }
if ($this->rm instanceof Tempfile) {
unset($this->rm);
} elseif (is_dir($this->rm)) {
RecursiveIteratorIterator::CHILD_FIRST);
foreach ($rii as $path => $child) {
if ($child->isDir()) {
- rmdir($path);
+ @rmdir($path);
} else {
- unlink($path);
+ @unlink($path);
}
}
- rmdir($this->rm);
+ @rmdir($this->rm);
} else {
@unlink($this->rm);
}