Fix: handle file modifications in Bookdrop event handler (#2559)

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
This commit is contained in:
Balázs Szücs
2026-01-31 22:49:58 +01:00
committed by GitHub
parent 3b460134fe
commit a27c9d57fb

View File

@@ -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);