docs: private static RecursiveDeleteResult recursiveDeleteFiles(HdfsEnvironment hdfsEnvironment, HdfsContext context, Path directory, List<String> filePrefixes, boolean deleteEmptyDirectories)
      {
          FileSystem fileSystem;
          try {
              fileSystem = hdfsEnvironment.getFileSystem(context, directory);
  
              if (!fileSystem.exists(directory)) {
                  return new RecursiveDeleteResult(true, ImmutableList.of());
              }
          }
          catch (IOException e) {
              ImmutableList.Builder<String> notDeletedItems = ImmutableList.builder();
              notDeletedItems.add(directory.toString() + "/**");
              return new RecursiveDeleteResult(false, notDeletedItems.build());
          }
  
          return doRecursiveDeleteFiles(fileSystem, directory, filePrefixes, deleteEmptyDirectories);
      }