Skip to content

Commit

Permalink
fix(core): include all files as input files
Browse files Browse the repository at this point in the history
isRegularFile filter too many files, !isDirectory will include more files.
I'm not sure why but for ex isRegularFile didn't include files in the DBT .profile dir
  • Loading branch information
loicmathieu committed Jul 12, 2024
1 parent 6342ee8 commit ab3ebd6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ default List<Path> relativeWorkingDirectoryFilesPaths() throws IOException {
}

try (Stream<Path> walk = Files.walk(workingDirectory)) {
Stream<Path> filtered = walk.filter(Files::isRegularFile);
Stream<Path> filtered = walk.filter(path -> !Files.isDirectory(path));
Path outputDirectory = this.getOutputDirectory();
if (outputDirectory != null) {
filtered = filtered.filter(Predicate.not(path -> path.startsWith(outputDirectory)));
Expand Down

0 comments on commit ab3ebd6

Please sign in to comment.