fabiospampinato / watcher

The file system watcher that strives for perfection, with no native dependencies and optional rename detection support.
MIT License
115 stars 15 forks source link

Support symlinks #3

Open fabiospampinato opened 3 years ago

fabiospampinato commented 3 years ago

Support both watching symlinks themselves and following them.

gajus commented 1 year ago

Would love to add watcher to https://github.com/gajus/turbowatch if it supported symlinks.

benmccann commented 3 months ago

chokidar has a followSymLinks option. Their initial implementation was pretty simple: https://github.com/paulmillr/chokidar/commit/284148bb3d118ee31241d167fa41036dcc088b59

It looks like this is the current implementation, which is about the same level of complexity if this is all of it: https://github.com/paulmillr/chokidar/blob/7c50e25d10a497ce4409f6e52eb630f0d7647b97/lib/nodefs-handler.js#L414