code: public static void mkdirsWithRecursivePermission(final FileSystem fs, final Path path, FsPermission perm) throws IOException {
      mkdirsWithRecursivePermissionWithRetry(fs, path, perm, NO_RETRY_CONFIG);
    }
docs: Create the given dir as well as all missing ancestor dirs. All created dirs will have the given permission.
  This should be used instead of {@link FileSystem#mkdirs(Path, FsPermission)}, since that method only sets
  the permission for the given dir, and not recursively for the ancestor dirs.
  
  @param fs FileSystem
  @param path The dir to be created
  @param perm The permission to be set
  @throws IOException if failing to create dir or set permission.