diff --git a/lib/std/os.zig b/lib/std/os.zig index 321c44a919..0cf6ce411d 100644 --- a/lib/std/os.zig +++ b/lib/std/os.zig @@ -3652,6 +3652,7 @@ pub const INotifyAddWatchError = error{ FileNotFound, SystemResources, UserResourceLimitReached, + NotDir, } || UnexpectedError; /// add a watch to an initialized inotify instance @@ -3675,6 +3676,7 @@ pub fn inotify_add_watchZ(inotify_fd: i32, pathname: [*:0]const u8, mask: u32) I ENOENT => return error.FileNotFound, ENOMEM => return error.SystemResources, ENOSPC => return error.UserResourceLimitReached, + ENOTDIR => return error.NotDir, else => |err| return unexpectedErrno(err), } }