How could I get the length of the event queue?

88 views
Skip to first unread message

Guo Jing

unread,
May 19, 2013, 12:55:00 AM5/19/13
to watchdo...@googlegroups.com
Hi all:

I want to do something sync to server when anything change in the local dir, something like:

1. delete the file
2. delete the file to server
3. download and sync other files (because I have to make sure other file is the latest)

Example I have 3 file, a, b and c.

If I do rm *.*, it will remove 3 files, then watchdog event coming:

1. first delete a in server, download b, c from server
2. delete b in server, download c from server
3. delete c

If I have a lot of file, it will re-download many times.

SO, how could I get the length of the Event Queue? Then I will make it download and sync the file at last event.

THANKS SO MUCH!
Reply all
Reply to author
Forward
0 new messages