(cls, url, *args)
return url
Join a URL with multiple directories
Join a URL with multiple directories
Join a URL with multiple directories
def _join_url_dir(cls, url, *args):
        """
        Join a URL with multiple directories
        """

        for path in args:
            url = url.rstrip('/') + '/'
            url = urljoin(url, path.lstrip('/'))

        return url
def _join_url_dir ( cls , url , * args ) : for path in args : url = url . rstrip ( '/' ) + '/' url = urljoin ( url , path . lstrip ( '/' ) ) return url