Commit 9bc8c330 by resurtm
parent 1327d8ad
...@@ -289,10 +289,10 @@ class BaseFileHelper ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment