Compare commits

..

2 commits
v0.0.1 ... main

Author SHA1 Message Date
leafee98 f319ed2978 Fix: wrong event move_to, should be moved_to 2023-09-28 19:27:19 +08:00
leafee98 6baca3da57 Listen event move_to and close_write
Since dufs 0.36.0, when uploading files, there will be multi modify
event, one create, one open, and one close_write
2023-09-28 18:58:43 +08:00

View file

@ -128,7 +128,7 @@ do
mkdir -p "$INCOME_DIR" mkdir -p "$INCOME_DIR"
msg "start watching INCOME_DIR" msg "start watching INCOME_DIR"
inotifywait --quiet -e move -e modify -e create "$INCOME_DIR" & inotifywait --quiet -e moved_to -e close_write "$INCOME_DIR" &
inotify_pid="$!" inotify_pid="$!"
# When inotifywait was killed, its return code is no-zero, # When inotifywait was killed, its return code is no-zero,