jgunthorpe / cloud_mdir_sync

Download mailboxes from the cloud into a local MailDir
Other
16 stars 9 forks source link

Replace pyinotify with watchdog #20

Closed wang2357 closed 1 month ago

wang2357 commented 1 month ago

Reason: 1) pyinotify works for only Linux; watchdog is cross-platform. 2) pyinotify no longer works with Python 3.12, due to removal of asyncore in 3.12, which is required by pyinotify.

wang2357 commented 1 month ago

The code using watchdog seems to be slower than pyinotify. With pyinotify, the changes are detected almost instantly. However, with watchdog, there seems to be a few seconds of delay. So the code is perhaps useful only when the alternative of using pyinotify is no longer feasible.

wang2357 commented 1 month ago

I am closing the pull request, due to unsatisfactory performance of watchdog compared to pyinotify.