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

View File

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