in src/main/java/com/epam/digital/data/platform/registry/regulation/validation/cli/utils/FileChecksumGenerator.java [136:148]
private static List<Path> getFilePathsFromDirectory(Path directoryPath) {
List<Path> filePaths = Collections.emptyList();
try (Stream<Path> pathStream = Files.find(directoryPath, Integer.MAX_VALUE,
(filePath, fileAttr) -> fileAttr.isRegularFile())) {
if (Objects.nonNull(pathStream)) {
filePaths = pathStream.collect(Collectors.toList());
}
return filePaths;
} catch (IOException e) {
throw new FileProcessingException(
String.format("Error processing files, path: %s", directoryPath), e);
}
}