Commit 61d2234743

Andrew Kelley <andrew@ziglang.org>
2024-07-10 09:42:16
std.Build.Watch: add ONDIR to fanotify event mask
This makes mkdir/rmdir events show up.
1 parent b6ed833
Changed files (1)
lib
std
Build
lib/std/Build/Watch.zig
@@ -19,6 +19,7 @@ pub const fan_mask: std.os.linux.fanotify.MarkMask = .{
     .MOVED_FROM = true,
     .MOVED_TO = true,
     .MOVE_SELF = true,
+    .ONDIR = true,
 };
 
 pub const init: Watch = .{