Skip to content

Commit d7afa2f

Browse files
authored
Merge pull request #42 from acardona/master
FileSystemTree event loop: ignore children file events that aren't CREATE or DELETE.
2 parents 1035da4 + d4e9801 commit d7afa2f

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

+2-1
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)