chokidar
chokidar copied to clipboard
Fix no events for symlinks with invalid targets
Even with followSymlinks: false
no events (e.g. 'add') were emitted for links with a target that doesn't exist.
Not sure about the changes / why we even need the realpath if followSymlinks: false
. Also tests seem to fail (at least locally).
This is more like a draft PR so far (maybe someone can take over or suggest changes).
Steps to repro:
const chokidar = require('.');
chokidar.watch('tmp', {
usePolling: true,
followSymlinks: false
}).on('all', (e, p) => console.log(e, p));
ln -s does-not-exist link