Changed from close_write to moved_to events since we're copying files over

This commit is contained in:
2026-03-05 08:43:45 -05:00
parent d8ed5d5dce
commit 32f52f3faf

View File

@@ -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"