You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When on macOS, a REMOVE event's details are printed, while on Linux Event not received! is printed.
Expected behavior
The output should either be consistent across platforms or a warning should be added to inform users of the library of the differences.
(note you do have to change the code to read multiple events: it reads just a single one now).
Arguably this isn't 100% ideal, but I'm not sure if it can be improved on without a lot of complexity; what it amounts to is that on inotify you only get a REMOVE if the file is removed and all file descriptors to it are closed. I don't really see a way to change that behaviour judging from inotify(7).
So I guess what should be done is that the documentation should be updated to clarify this.
I am using the latest fsnotify release
v1.5.4
.Describe the bug
When a file that is being watched is removed, an event is triggered when running on macOS but not on Linux.
To Reproduce
Minimal reproducible example:
When on macOS, a
REMOVE
event's details are printed, while on LinuxEvent not received!
is printed.Expected behavior
The output should either be consistent across platforms or a warning should be added to inform users of the library of the differences.
Which operating system and version are you using?
Linux:
golang:1.18
Docker imagemacOS:
ProductName: macOS
ProductVersion: 11.6.7
BuildVersion: 20G630
The text was updated successfully, but these errors were encountered: