Updated core, thanks Yomli
This commit is contained in:
parent
5d8d7293cf
commit
6eab50f0f0
1 changed files with 3 additions and 3 deletions
|
@ -2577,10 +2577,10 @@ class YellowToolbox {
|
|||
$iterator = new RecursiveDirectoryIterator($path, RecursiveDirectoryIterator::SKIP_DOTS);
|
||||
$files = new RecursiveIteratorIterator($iterator, RecursiveIteratorIterator::CHILD_FIRST);
|
||||
foreach ($files as $file) {
|
||||
if ($file->isDir()) {
|
||||
@rmdir($file->getRealPath());
|
||||
if ($file->getType()=="dir") {
|
||||
@rmdir($file->getPathname());
|
||||
} else {
|
||||
@unlink($file->getRealPath());
|
||||
@unlink($file->getPathname());
|
||||
}
|
||||
}
|
||||
$ok = @rmdir($path);
|
||||
|
|
Loading…
Add table
Reference in a new issue