diff --git a/Automatically-import-new-books-(Linux).md b/Automatically-import-new-books-(Linux).md index bf711e5..0fead16 100644 --- a/Automatically-import-new-books-(Linux).md +++ b/Automatically-import-new-books-(Linux).md @@ -54,7 +54,7 @@ add_to_calibre() { } # Monitor the folder for new files -inotifywait -m -e create -e moved_to "$WATCH_FOLDER" | +inotifywait -m -e close_write,moved_to -e moved_to "$WATCH_FOLDER" | while read -r directory events filename; do echo "New file detected: $filename" add_to_calibre "$filename"