resurtm
2014-06-27 21:07:12 +06:00
parent 1327d8ad2d
commit 9bc8c3304b

View File

@ -289,10 +289,10 @@ class BaseFileHelper
continue;
}
$path = $dir . DIRECTORY_SEPARATOR . $file;
if (is_file($path)) {
unlink($path);
} else {
if (is_dir($path)) {
static::removeDirectory($path, $options);
} else {
unlink($path);
}
}
closedir($handle);