Live data from Hacker News

Show HN: Filesystem Watcher

github.com

1–10 of 80 posts

Show HN: Filesystem Watcher

#1
An arbitrary filesystem event watcher which is:

- simple

- efficient

- dependency free

- runnable anywhere with a filesystem

- header only

Watcher is extremely efficient. In most cases, even when scanning millions of paths, this library uses a near-zero amount of resources.

Watcher is simple. The library exposes a single function and a single object. That is all.

Happy hacking.

Show HN: Filesystem Watcher
github.com

Re: Show HN: Filesystem Watcher

#8
post #7

Looks great! I'm wondering what operating systems are supported. I'm assuming Linux. What about macOS and Windows?

All are supported. Although, to be more efficient, I need to write system API calls for Windows. That will be the 1.0 release.

[flagged]

Re: Show HN: Filesystem Watcher

#9
How does this work under the covers on Linux? Is it using eBPF, or is it simply an abstraction over inotify?

I'm particularly interested in something like this, but which will include information about what process made the change, and which user it was running as at the time.

Post reply on HN