for (Path p: inputDirs) {
FileSystem fs = p.getFileSystem(job);
if (fs.exists(p)) {
// make sure all paths are files to avoid exception
// while generating splits
for (Path subPath : fs.listPaths(p, hiddenFileFilter)) {
FileSystem subFS = subPath.getFileSystem(job);
if (!subFS.exists(subPath)) {
result.add(new IOException(
"Input path does not exist: " + subPath));
} else {