mirror of
https://github.com/booklore-app/booklore.git
synced 2026-02-18 00:17:53 +01:00
Fix: handle file modifications in Bookdrop event handler (#2559)
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
This commit is contained in:
@@ -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