aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-09-21 12:52:47 +0200
committerGitHub <noreply@github.com>2024-09-21 12:52:47 +0200
commit59059f660577e8af91a986b3210f88a40677fb2a (patch)
tree570a3ccb58eb7919520613b93c9e551951f24208 /lib
parenta1b538d79148403592362fe22c5df50170bf779e (diff)
parent4ae10aa7f95e11608d465b3c58d7a88c48cbfbf5 (diff)
downloadnextcloud-server-59059f660577e8af91a986b3210f88a40677fb2a.tar.gz
nextcloud-server-59059f660577e8af91a986b3210f88a40677fb2a.zip
Merge pull request #48246 from nextcloud/bug/noid/profile-clear-not-working
fix(profiler): clear command does not work
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Profiler/FileProfilerStorage.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/Profiler/FileProfilerStorage.php b/lib/private/Profiler/FileProfilerStorage.php
index a4021d064a9..cd45090e7ca 100644
--- a/lib/private/Profiler/FileProfilerStorage.php
+++ b/lib/private/Profiler/FileProfilerStorage.php
@@ -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);
}
}
}