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
This commit is contained in:
parent
8a9cb1e45c
commit
6baca3da57
|
@ -128,7 +128,7 @@ do
|
|||
|
||||
mkdir -p "$INCOME_DIR"
|
||||
msg "start watching INCOME_DIR"
|
||||
inotifywait --quiet -e move -e modify -e create "$INCOME_DIR" &
|
||||
inotifywait --quiet -e move_to -e close_write "$INCOME_DIR" &
|
||||
inotify_pid="$!"
|
||||
|
||||
# When inotifywait was killed, its return code is no-zero,
|
||||
|
|
Loading…
Reference in a new issue