Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Optionally follow symlinks within a watch root #112

Open
smashwilson opened this issue Feb 7, 2018 · 0 comments
Open

Optionally follow symlinks within a watch root #112

smashwilson opened this issue Feb 7, 2018 · 0 comments

Comments

@smashwilson
Copy link
Contributor

Teach watchPath() a followSymlinks option. When true, any directories symlinked within a watched root directory should also be watched for changes. Newly created symlinks should be watched and removed symlinks should be unwatched as appropriate.

Note that this is a bit involved because none of the OS-level event APIs actually support following symlinks natively. This means that we'd need to do a full recursive scan of the watch root on root addition to discover symlinks, which means race conditions related to symlinks created or modified during the scan...

This was referenced Feb 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant