code: public PagedList<NodeFile> listFromTask(final String jobId, final String taskId, final Boolean recursive, final FileListFromTaskOptions fileListFromTaskOptions) {
          ServiceResponseWithHeaders<Page<NodeFile>, FileListFromTaskHeaders> response = listFromTaskSinglePageAsync(jobId, taskId, recursive, fileListFromTaskOptions).toBlocking().single();
          return new PagedList<NodeFile>(response.body()) {
              @Override
              public Page<NodeFile> nextPage(String nextPageLink) {
                  FileListFromTaskNextOptions fileListFromTaskNextOptions = null;
                  if (fileListFromTaskOptions != null) {
                      fileListFromTaskNextOptions = new FileListFromTaskNextOptions();
                      fileListFromTaskNextOptions.withClientRequestId(fileListFromTaskOptions.clientRequestId());
                      fileListFromTaskNextOptions.withReturnClientRequestId(fileListFromTaskOptions.returnClientRequestId());
                      fileListFromTaskNextOptions.withOcpDate(fileListFromTaskOptions.ocpDate());
                  }
                  return listFromTaskNextSinglePageAsync(nextPageLink, fileListFromTaskNextOptions).toBlocking().single().body();
              }
          };
      }
docs: Lists the files in a task's directory on its compute node.
  
  @param jobId The ID of the job that contains the task.
  @param taskId The ID of the task whose files you want to list.
  @param recursive Whether to list children of the task directory. This parameter can be used in combination with the filter parameter to list specific type of files.
  @param fileListFromTaskOptions Additional parameters for the operation
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws BatchErrorException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the PagedList&lt;NodeFile&gt; object if successful.