mirage / irmin-watcher

Portable implementation of the Irmin Watch API
ISC License
14 stars 15 forks source link

Is there a recommended way to watch a directory recursively? #38

Open kentookura opened 7 months ago

kentookura commented 7 months ago

Since a hook takes a string as an argument for the watch directory and the library doesn't expose many internals, I am wondering how to watch multiple directories and how to watch recursively.

Should I recurse over the directory structure and create a watcher for each dir? If so, I would still wonder about how to best achieve this.

Thanks!

kentookura commented 7 months ago

Before anyone takes some time to answer this, I think I need to wait on #37 to land before I can proceed.