@translate_s3_error
  def mkdir(self, path, *args, **kwargs):
    """
    Creates a directory and any parent directory if necessary.

    Actually it creates an empty object: s3://[bucket]/[path]/
    """
    stats = self._stats(path)
    if stats:
      if stats.isDir:
        return None
      else:
        raise IOError(errno.ENOTDIR, path % "'%s' already exists and is not a directory")
    path = self._append_separator(path)  # folder-key should ends by /
    self.create(path)  # create empty object
dataset/ETHPy150Open cloudera/hue/desktop/libs/aws/src/aws/s3/s3fs.py/S3FileSystem.mkdir/swapped operands of `%`