empty dir fix
This commit is contained in:
parent
168a0f001c
commit
610ff22abe
1 changed files with 4 additions and 0 deletions
|
@ -117,6 +117,10 @@ public class PipelineDirectoryProcessor {
|
|||
for (PipelineOperation operation : config.getOperations()) {
|
||||
validateOperation(operation);
|
||||
File[] files = collectFilesForProcessing(dir, jsonFile, operation);
|
||||
if(files == null || files.length == 0) {
|
||||
logger.info("No files detected for {} ", dir);
|
||||
return;
|
||||
}
|
||||
List<File> filesToProcess = prepareFilesForProcessing(files, processingDir);
|
||||
runPipelineAgainstFiles(filesToProcess, config, dir, processingDir);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue