mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Merge pull request #48246 from nextcloud/bug/noid/profile-clear-not-working
fix(profiler): clear command does not work
This commit is contained in:
commit
59059f6605
1 changed files with 4 additions and 4 deletions
|
|
@ -81,11 +81,11 @@ class FileProfilerStorage {
|
|||
$iterator = new \RecursiveIteratorIterator($iterator, \RecursiveIteratorIterator::CHILD_FIRST);
|
||||
|
||||
foreach ($iterator as $file) {
|
||||
$file = (string)$file->getPathInfo();
|
||||
if (is_file($file)) {
|
||||
unlink($file);
|
||||
$path = $file->getPathname();
|
||||
if (is_file($path)) {
|
||||
unlink($path);
|
||||
} else {
|
||||
rmdir($file);
|
||||
rmdir($path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue