@translate_s3_error
  def rename_star(self, old_dir, new_dir):
    if not self.isdir(old_dir):
      raise IOError(errno.ENOTDIR, "'%s' is not a directory" % old_dir)
    if self.isfile(new_dir):
      raise IOError(errno.ENOTDIR, "'%s' is not a directory" % new_dir)
    ls = self.listdir(old_dir)
    for entry in ls:
      self.rename(s3.join(old_dir, entry), s3.join(new_dir, entry))
dataset/ETHPy150Open cloudera/hue/desktop/libs/aws/src/aws/s3/s3fs.py/S3FileSystem.rename_star/original