Skip to content

Commit

Permalink
Dev mode: RuntimeUpdatesProcessor - never watch directories
Browse files Browse the repository at this point in the history
  • Loading branch information
mkouba committed Nov 21, 2023
1 parent 2ff9715 commit f90ca79
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,9 @@ private RuntimeUpdatesProcessor setWatchedFilePathsInternal(Map<String, Boolean>
// First find all matching paths from all roots
try (final Stream<Path> walk = Files.walk(root)) {
walk.forEach(path -> {
if (path.equals(root)) {
if (path.equals(root)
// Never watch directories
|| Files.isDirectory(path)) {
return;
}
// Use the relative path to match the watched file
Expand Down

0 comments on commit f90ca79

Please sign in to comment.