// The path can be blank if a sub-folder contains a POM that doesn't
// belong to a module
if (StringUtils.isNotBlank(canonicalPath)) {
final File directory = new File(canonicalPath);
if (directory.isDirectory()) {
final MonitoringRequest request = new DirectoryMonitoringRequest(
directory, true, MONITORED_OPERATIONS);
new UndoableMonitoringRequest(undoManager, fileMonitorService,
request, true);
}
}