code: private static void checkSrcPath(Configuration conf, List<Path> srcPaths
        ) throws IOException {
      List<IOException> rslt = new ArrayList<IOException>();
      List<Path> unglobbed = new LinkedList<Path>();
      for (Path p : srcPaths) {
        FileSystem fs = p.getFileSystem(conf);
        FileStatus[] inputs = fs.globStatus(p);
  
        if(inputs != null && inputs.length > 0) {
          for (FileStatus onePath: inputs) {
            unglobbed.add(onePath.getPath());
          }
        } else {
          rslt.add(new IOException("Input source " + p + " does not exist."));
        }
      }
      if (!rslt.isEmpty()) {
        throw new InvalidInputException(rslt);
      }
      srcPaths.clear();
      srcPaths.addAll(unglobbed);
    }
docs: Sanity check for srcPath