e-dant / watcher

Filesystem watcher. Works anywhere. Simple, efficient and friendly.
MIT License
639 stars 32 forks source link

Handle rename event properly #40

Closed e-dant closed 3 months ago

e-dant commented 10 months ago

In https://github.com/e-dant/watcher/issues/39, there was was some discussion about how to report rename events to the user: https://github.com/e-dant/watcher/issues/39#issuecomment-1752741290 https://github.com/e-dant/watcher/issues/39#issuecomment-1773569898

The platform adapters for linux (both inotify and fanotify) and darwin are mostly complete. We still need to put a few extra lines in the Windows adapter on that end, write automated tests to run on CI for rename events, and document how the user should handle them.