shama / gaze

:crystal_ball: A globbing fs.watch wrapper built from the best parts of other fine watch libs.
MIT License
1.16k stars 167 forks source link

How to watch a folder for added/deleted files? #262

Open ericmorand opened 4 years ago

ericmorand commented 4 years ago

I can't find a way to watch a folder for added/deleted files. I can achieve this by watching the whole content of the folder using:

    let watcher = new Gaze('**/*');

But it then watches all the files inside the folder which I don't want. Surely, since Gaze is able to detect added/deleted files when using that syntax, it is able to detect added/deleted files without watching the whole content of the folder.