Skip to content

Commit

Permalink
Fix #596 - add check for fromCreateEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
skybber committed Oct 3, 2024
1 parent 3b70307 commit ca39f01
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ protected void registerAll(final Path dir, boolean fromCreateEvent) throws IOExc
Files.walkFileTree(dir, EnumSet.of(FileVisitOption.FOLLOW_LINKS), Integer.MAX_VALUE, new SimpleFileVisitor<Path>() {
@Override
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {
sendFakeCreateEvents(dir);
if (fromCreateEvent) {
sendFakeCreateEvents(dir);
}
register(dir);
return FileVisitResult.CONTINUE;
}
Expand Down

0 comments on commit ca39f01

Please sign in to comment.