docs: private Map<Path, FileStatus> listEligibleFiles(FileSystem fileSystem, Path path) throws IOException {
  
  		final FileStatus[] statuses;
  		try {
  			statuses = fileSystem.listStatus(path);
  		} catch (IOException e) {
  			// we may run into an IOException if files are moved while listing their status
  			// delay the check for eligible files in this case
  			return Collections.emptyMap();
  		}
  
  		if (statuses == null) {
  			LOG.warn("Path does not exist: {}", path);
  			return Collections.emptyMap();
  		} else {
  			Map<Path, FileStatus> files = new HashMap<>();
  			// handle the new files
  			for (FileStatus status : statuses) {
  				if (!status.isDir()) {
  					Path filePath = status.getPath();
  					long modificationTime = status.getModificationTime();
  					if (!shouldIgnore(filePath, modificationTime)) {
  						files.put(filePath, status);
  					}
  				} else if (format.getNestedFileEnumeration() && format.acceptFile(status)){
  					files.putAll(listEligibleFiles(fileSystem, status.getPath()));
  				}
  			}
  			return files;
  		}
  	}