by andrewguy9 · 10y ago · 0 comments
I've not read the Linux code for them, but I think the implementation is probably similar.
This is not something I'd like to rely on.
Reading the code for Realize, he gets the directory watching facilities from https://github.com/fsnotify/fsnotify. That library seems to drop the 'buffer overflow, please reset your assumptions' message. So if it did happen, I don't think the user would have a good experience.
If you do ever depend on ReadDirectoryChanges, you do need to fallback to stat-ing files if you get an overflow. Otherwise, your milage may vary.