src/DataHandling.php
public static function formatDirectory($pathOrPaths, ...$additionalPaths)
    {
        $directory = self::formatPath($pathOrPaths, ...$additionalPaths);

        if ($directory) {
            $directory = rtrim($directory, "/") . "/";
        }

        return $directory;
    }
public static function formatDirectory($pathOrPaths, ...$additionalPaths)
    {
        $directory = self::formatPath($pathOrPaths, ...$additionalPaths);

        if ($directory) {
            $directory = rtrim($directory, "/") . "/";
        }

        return $directory;
    }
public static function formatDirectory ( $ pathOrPaths , ... $ additionalPaths ) { $ directory = self :: formatPath ( $ pathOrPaths , ... $ additionalPaths ) ; if ( $ directory ) { $ directory = rtrim ( $ directory , "/" ) . "/" ; } return $ directory ; }
Formats a directory path to a uniform representation.
Basically formatPath but with a trailing slash.

@param string|string[] $pathOrPaths
@param string[] $additionalPaths
@return string
Formats a directory path to a uniform representation . Basically formatPath but with a trailing slash .