code: public static JavaRDD<String> listPaths(JavaSparkContext sc, String path, boolean recursive) throws IOException {
          //NativeImageLoader.ALLOWED_FORMATS
          return listPaths(sc, path, recursive, (Set<String>)null);
      }
docs: List of the files in the given directory (path), as a {@code JavaRDD<String>}
  
  @param sc        Spark context
  @param path      Path to list files in
  @param recursive Whether to walk the directory tree recursively (i.e., include subdirectories)
  @return Paths in the directory
  @throws IOException If error occurs getting directory contents