src/Environaut/Checks/Validator.php
public static function fixPath($path)
    {
        if (empty($path)) {
            return $path;
        }

        if ('/' != $path{strlen($path) - 1}) {
            $path .= '/';
        }

        return $path;
    }
public static function fixPath($path)
    {
        if (empty($path)) {
            return $path;
        }

        if ('/' != $path{strlen($path) - 1}) {
            $path .= '/';
        }

        return $path;
    }
Appends '/' to the path if necessary.

@param string $path file system path

@return string path with trailing slash