2 ms·
> I'm really surprised that this sort of functionality isn't built into OS's/filesystems It appears to be built into macOS [1]? > Whenever the filesystem is c
by nomel 4y ago
> I'm really surprised that this sort of functionality isn't built into OS's/filesystems
It appears to be built into macOS [1]?
> Whenever the filesystem is changed, the kernel passes notifications via the special device file /dev/fsevents to a userspace process called fseventsd
Which I assume is what they're referring to here:
> A platform filesystem watcher for Darwin is used, but certain event properties are handled by the standard library. Namely, the event time and the path type.
1. https://en.wikipedia.org/wiki/FSEvents https://en.wikipedia.org/wiki/FSEvents
- diffxx 4y ago> It appears to be built into macOS [1]? It is, but it's badly implemented and buggy. But the real problem is that there is no posix like specification for file system events so every platform does it differently. Even if every platform implementation were perfect and bug free, it is a huge pain to write wrappers for each one.