code: def _join_url_dir(self, url, *args):
          
          for path in args:
              url = url.rstrip('/') + '/'
              url = urljoin(url, path.lstrip('/'))
  
          return url
docs: Join a URL with multiple directories