Skip to content

Commit

Permalink
Hack Ginevra: Don't load files whose name starts with '.'
Browse files Browse the repository at this point in the history
  • Loading branch information
nipafx committed Apr 16, 2024
1 parent a031a48 commit 5c351b4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ private List<Document<DATA>> loadAllFromDirectory(Path directory) {
try (var files = Files.walk(directory, 1)) {
return files
.filter(not(Files::isDirectory))
.filter(file -> !file.getFileName().toString().startsWith("."))
.map(this::loadFile)
.flatMap(Optional::stream)
.toList();
Expand Down

0 comments on commit 5c351b4

Please sign in to comment.