public static function path($path, $trailingSlash = true)
    {
        $path = str_replace(['\\', '/'], PHP_DS, $path);
        $path = rtrim($path, PHP_DS);
        if ($trailingSlash) {
            $path .= PHP_DS;
        }

        return $path;
    }