fix(windows): scan dirs moved into watch tree

This commit is contained in:
CJ van den Berg 2026-03-29 18:17:39 +02:00
parent daf58bd4dc
commit adf172cea6
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -253,6 +253,12 @@ fn thread_fn(
}
gop.value_ptr.* = ot;
}
// A directory that appears via move-in carries existing children
// that will never generate FILE_ACTION_ADDED events. Scan its
// contents into the cache so subsequent deletes resolve their
// type. Scanning a genuinely new (empty) directory is a no-op.
if (ot == .dir and event_type == .created)
scan_path_types_into(allocator, path_types, full_path);
break :blk ot;
};
// Suppress FILE_ACTION_MODIFIED on directories: these are