if (fileSelection.containsDirectories(fs)) {
for (FormatMatcher m : dirMatchers) {
try {
Object selection = m.isReadable(fileSelection);
if (selection != null)
return new DynamicDrillTable(plugin, storageEngineName, selection);
} catch (IOException e) {
logger.debug("File read failed.", e);
}
}
fileSelection = fileSelection.minusDirectories(fs);
}
for (FormatMatcher m : fileMatchers) {
Object selection = m.isReadable(fileSelection);
if (selection != null)
return new DynamicDrillTable(plugin, storageEngineName, selection);
}
return null;
} catch (IOException e) {
logger.debug("Failed to create DrillTable with root {} and name {}", config.getLocation(), key, e);