#111511Simplify removing trailing slash in GeneralUtility::rmdir()
Description
There is no need to use a regular expression to remove a trailing slash from the path:
$path = preg_replace('|/$|', '', $path) ?? '';
can be written as
$path = rtrim($path, '/');
instead.
Reviews 1
History 01
-
Gerrit Code Review pushed patch set 1 for main to change 97847 status
NewUnder Review <span data-processor="relativetime" data-value="2026-11-19T15:39:56+00:00" > 11/19/26, 15:39 </span>