private function _recursivelyRemoveDirectory($path)
{
$fileList = scandir($path);
foreach ($fileList as $file) {
if ('.' == $file || '..' == $file) {
continue;
}
$file = $path . '/' . $file;
is_dir($file) ? $this->_recursivelyRemoveDirectory($file) : @unlink($file);
}
@rmdir($path);
}