News for hackers. Stuff that matters.
Re:Show HN: Filesystem Watcher by e-dant on Tuesday October 18, 2022 @09:54AM (#33247156)
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.

Re:Show HN: Filesystem Watcher by widdershins on Tuesday October 18, 2022 @10:22AM (#33247625)
Looks great! I'm wondering what operating systems are supported. I'm assuming Linux. What about macOS and Windows?
Re:Show HN: Filesystem Watcher by dljsjr on Tuesday October 18, 2022 @10:27AM (#33247713)
https://github.com/e-dant/watcher/blob/989147b183ee0547d71a1...

Looks like it works on quite a few systems including Android and iOS.

Re:Show HN: Filesystem Watcher by e-dant on Tuesday October 18, 2022 @10:28AM (#33247735)
All are supported.

Although, to be more efficient, I need to write system API calls for Windows.

That will be the 1.0 release.

Re:Show HN: Filesystem Watcher by hackyhacky on Tuesday October 18, 2022 @10:46AM (#33248028)
> All are supported.

Really? Great news! I can't wait to use this library on my BeOS desktop system, my OpenVMS timeshare, my z/OS mainframe, my OS/2 laptop, my VxWorks router, and my AmigaDOS game system, and of course my TempleOS hobby project.

Re:Show HN: Filesystem Watcher by sk0g on Tuesday October 18, 2022 @11:14AM (#33248532)
They were responding to a comment asking about Linux, MacOS, and Windows support.

Needless pedantry is one thing, but deliberately misconstruing a discussion to support said pedantry is sad.

https://news.ycombinator.com/newsguidelines.html

Re:Show HN: Filesystem Watcher by OnlyMortal on Tuesday October 18, 2022 @12:29PM (#33249974)
It uses FSEvents on the Mac. It can do dumb polling too.