seangenabe / shadow

Glob files to copy/symlink/hardlink to another directory.
MIT License
2 stars 1 forks source link

Watch mode #20

Open Venryx opened 3 years ago

Venryx commented 3 years ago

This is a nice library, and it's the first one I used for syncing a symlinked folder to a "hardlink" copy.

That said, the main feature it's missing is the ability to "watch" the source folder and react to changes.

I'm not sure whether you'd be interested in adding this.

Anyway, here are two libraries I found that are similar to shadow, but have watch capabilities: https://github.com/hoperyy/sync-directory https://github.com/pk-nb/sync-folders

I thought you might want to know. (whether that be to add watch functionality, switch to one of those libs, link to them as alternatives, etc.)

EDIT: I also just made my own branch-off of sync-directory here: https://github.com/Venryx/file-syncer

seangenabe commented 3 years ago

Thanks for the suggestion. I'd rather offload watch functionality to established modules such as chokidar to keep the package simple. Adding features can result in feature cruft that I don't want to handle now. Feel free to use the alternatives you mentioned or fork this repo if you want to.