docs: def mkdir(hdfs_path, user=None):
      """
      Create a directory and its parents as needed.
      """
      host, port, path_ = path.split(hdfs_path, user)
      fs = hdfs(host, port, user)
      retval = fs.create_directory(path_)
      fs.close()
      return retval