Skip to content

Commit d4e9801

Browse files
committed
FileSystemTree event loop: ignore children file events that aren't CREATE or DELETE.
1 parent 1035da4 commit d4e9801

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/scijava/ui/swing/script/FileSystemTree.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,8 @@ public void run() {
572572

573573
for (final WatchEvent<?> event: key.pollEvents()) {
574574
final WatchEvent.Kind<?> kind = event.kind();
575-
if (StandardWatchEventKinds.OVERFLOW == kind) {
575+
if (StandardWatchEventKinds.OVERFLOW == kind
576+
|| StandardWatchEventKinds.ENTRY_MODIFY == kind) { // ignore e.g. files getting larger or smaller
576577
continue;
577578
}
578579

0 commit comments

Comments
 (0)