5HT / fs

📁 FS: Windows, Linux, Mac Driver
https://fs.n2o.dev
Other
235 stars 69 forks source link

Support for watching multiple directories? #12

Open gniquil opened 9 years ago

gniquil commented 9 years ago

Hi I am interested to use this library. One thing I realize is that this gets the root path from the envrionment or cwd, which could mean that this only works like a singleton for the vm? If not, how do I change the root and use it to watch multiple non overlapping directories without going all the way up to the common root?

5HT commented 9 years ago

I will think on this request, seems reasonable, I will think of its best and compact implementation. Stay tuned.

liveforeverx commented 8 years ago

Would it be reasonable to change interface to something like: fs:start_notify(Path) ?

It will solve the problem to set the right enviroment, before starting fs(that means, we need to add the application as included_applications before starting it). And it possible to start different listeners for different pathes.