fix(inotify): report .closed events separately from .modified events

This commit is contained in:
CJ van den Berg 2026-03-29 14:28:23 +02:00
parent 95c7580a87
commit 99dec3f689
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
9 changed files with 59 additions and 1 deletions

View file

@ -7,6 +7,11 @@ pub const EventType = enum {
created,
/// A file's contents were modified.
modified,
/// A file was closed.
///
/// Only delivered by INotfiy (Linux) and only if the file was opened
/// for writing.
closed,
/// A file or directory was deleted.
deleted,
/// A file or directory was renamed or moved.