} else if (matches.length == 0) {
errors.add(new IOException("Input Pattern " + p + " matches 0 files"));
} else {
for (FileStatus globStat: matches) {
for(RemoteIterator<LocatedFileStatus> itor =
fs.listLocatedStatus(globStat.getPath(),
inputFilter); itor.hasNext();) {
result.add(itor.next());
}
}
}