def join(*comp_list):
  def _prep(uri):
    try:
      return '/%s/%s' % parse_uri(uri)[:2]
    except ValueError:
      return '/' if is_root(uri) else uri
  joined = posixpath.join(*map(_prep, comp_list))
  if joined and joined[0] == '/':
    joined = 's3:/%s' % joined
  return joined
dataset/ETHPy150Open cloudera/hue/desktop/libs/aws/src/aws/s3/__init__.py/join/original