Skip to content

Commit

Permalink
Merge pull request #31314 from JKingsnorth/patch-28
Browse files Browse the repository at this point in the history
dev/core#5534 Fixes overzealous removal of directories
  • Loading branch information
seamuslee001 authored Oct 18, 2024
2 parents fba55e3 + 76557e6 commit 009c20f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Utils/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public static function cleanDir(string $target, bool $rmdir = TRUE, bool $verbos
}
}
elseif (is_dir($object)) {
CRM_Utils_File::cleanDir($object, TRUE, $verbose);
CRM_Utils_File::cleanDir($object, $rmdir, $verbose);
}
elseif (is_file($object)) {
CRM_Utils_File::try_unlink($object, "file");
Expand Down

0 comments on commit 009c20f

Please sign in to comment.