diff --git a/watch-imports.sh b/watch-imports.sh index 2983bb1..9a9ba46 100644 --- a/watch-imports.sh +++ b/watch-imports.sh @@ -150,7 +150,7 @@ fi info "Watching $INCOMING_DIR for new CSV files... (Ctrl+C to stop)" -inotifywait -m -e close_write --format '%f' "$INCOMING_DIR" 2>/dev/null \ +inotifywait -m -e close_write -e moved_to --format '%f' "$INCOMING_DIR" \ | while IFS= read -r filename; do if [[ "$filename" == *.csv ]]; then process_csv "$INCOMING_DIR/$filename"