Changed from close_write to moved_to events since we're copying files over
This commit is contained in:
@@ -150,7 +150,7 @@ fi
|
|||||||
|
|
||||||
info "Watching $INCOMING_DIR for new CSV files... (Ctrl+C to stop)"
|
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
|
| while IFS= read -r filename; do
|
||||||
if [[ "$filename" == *.csv ]]; then
|
if [[ "$filename" == *.csv ]]; then
|
||||||
process_csv "$INCOMING_DIR/$filename"
|
process_csv "$INCOMING_DIR/$filename"
|
||||||
|
|||||||
Reference in New Issue
Block a user