]> source.dussan.org Git - nextcloud-server.git/commit
fix(profiler): clear command does not work bug/noid/profile-clear-not-working 48246/head
authorDaniel Kesselberg <mail@danielkesselberg.de>
Fri, 20 Sep 2024 16:14:33 +0000 (18:14 +0200)
committerDaniel Kesselberg <mail@danielkesselberg.de>
Fri, 20 Sep 2024 16:14:33 +0000 (18:14 +0200)
commit4ae10aa7f95e11608d465b3c58d7a88c48cbfbf5
treee4381580ad169d393fd78979de8b7574dcf3dca7
parentbc5222726b7f6f04308231ff55b8e89ade582d37
fix(profiler): clear command does not work

- The loop is supposed to delete the files first and then the directories.
- getPathInfo returns a SplFileInfo object for the parent (the folder in our case).
- A non-empty directory cannot be deleted.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
lib/private/Profiler/FileProfilerStorage.php