Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symlink question: Is fswatch suppose to notify of linked file changes #317

Open
abbaswasim opened this issue Dec 18, 2023 · 1 comment
Open

Comments

@abbaswasim
Copy link

abbaswasim commented Dec 18, 2023

I am struggling to make fswatch work in the following scenario. Curious if this is suppose to work or not.

I have two directories:

root/data/actual_files.*
root/links/actual_files.* -> ../data/actual_files.*

If I run fswatch like following, with or without the -L option it works fine. It can notify me of all the actual_files.* changes.

fswatch --monitor=fsevents_monitor -L root/data/

But if I run fswatch like the following, with or without the -L option it doesn't work. It doesn't matter if I am editing these files via the root/links/actual_files.* symlinks or straight in the root/data/actual_files.*.

fswatch --monitor=fsevents_monitor -L root/links/

PS: using the fsevents_monitor should tell I am on MacOs Ventura 13.6.1 (22G313)

@abbaswasim
Copy link
Author

abbaswasim commented Dec 19, 2023

Further to this. I have also tried both poll_monitor and kqueue_monitor both don't work at all on my setup with the above simple test. i.e. Symlink or not it won't show updates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant