protected function _clean($dir)
{
foreach (scandir($dir) as $item) {
if ($item === '.' || $item === '..') {
continue;
}
$path = $dir . '/' . $item;
if (is_file($path)) {
if (time() > filemtime($path)) {
@unlink($path);
}
} else {
$this->_clean($path);
}
}
}