fix(windows): pair rename src dst events to emit full .rename src dst events

This commit is contained in:
CJ van den Berg 2026-03-29 17:40:09 +02:00
parent 03996eb5c1
commit ef01e2590e
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 77 additions and 23 deletions

View file

@ -30,8 +30,13 @@ pub const EventType = enum {
/// `NOTE_WRITE` events and appear as a `deleted` event for the old
/// name followed by a `created` event for the new name.
///
/// - **FSEvents / Windows**: each path involved in a rename receives
/// its own `renamed` change event; the two sides are not paired.
/// - **Windows**: renames within the watched tree are delivered as a
/// single atomic `rename` callback, matching INotify behaviour. A
/// move out of the tree appears as `deleted`; a move into the tree
/// appears as `created`.
///
/// - **FSEvents**: each path involved in a rename receives its own
/// `renamed` change event; the two sides are not paired.
renamed,
};