code: private static void checkPaths(Configuration conf, List<Path> paths) throws
    IOException {
      for (Path p : paths) {
        FileSystem fs = p.getFileSystem(conf);
        if (!fs.exists(p)) {
          throw new FileNotFoundException("Source " + p + " does not exist.");
        }
      }
    }
docs: check the src paths