When recursively watching a directory that contains a symlink that points at nothing, it fails with error while traversing /usr/home/simon/Sync: no such file or directory. I first wanted to handle that by opening the symlink itself instead of following it, however it turns out that's not supported on BSDs (no O_SYMLINK). Ignoring and thus not watching the broken symlink seems more appropriate than failing the entire recursive watch operation.
When recursively watching a directory that contains a symlink that points at nothing, it fails with
error while traversing /usr/home/simon/Sync: no such file or directory
. I first wanted to handle that by opening the symlink itself instead of following it, however it turns out that's not supported on BSDs (noO_SYMLINK
). Ignoring and thus not watching the broken symlink seems more appropriate than failing the entire recursive watch operation.