Fix: handle file modifications in Bookdrop event handler (#2559)
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
This commit is contained in:
+1
-1
@@ -75,7 +75,7 @@ public class BookdropEventHandlerService {
|
||||
Path file = event.getFile();
|
||||
WatchEvent.Kind<?> kind = event.getKind();
|
||||
|
||||
if (kind == StandardWatchEventKinds.ENTRY_CREATE) {
|
||||
if (kind == StandardWatchEventKinds.ENTRY_CREATE || kind == StandardWatchEventKinds.ENTRY_MODIFY) {
|
||||
try {
|
||||
if (!Files.exists(file)) {
|
||||
log.warn("File does not exist, ignoring: {}", file);
|
||||
|
||||
Reference in New Issue
Block a user