Skip to content

Commit

Permalink
Only consider files as potential build scripts in UniqueIdTrackingLis…
Browse files Browse the repository at this point in the history
…tener

See #2619
  • Loading branch information
sbrannen committed Jun 4, 2021
1 parent 419ddb1 commit 3d77425
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,11 @@ Path currentWorkingDir() {
private boolean containsFilesWithExtensions(Path dir, String... extensions) throws IOException {
return Files.find(dir, 1, //
(path, basicFileAttributes) -> {
for (String extension : extensions) {
if (path.getFileName().toString().endsWith(extension)) {
return true;
if (basicFileAttributes.isRegularFile()) {
for (String extension : extensions) {
if (path.getFileName().toString().endsWith(extension)) {
return true;
}
}
}
return false;
Expand Down

0 comments on commit 3d77425

Please sign in to comment.