file.walk uses fs.lstat which does NOT follow symlinks, but fs.walkSync uses fs.statSync which DOES follow symlinks. This is probably not intended behaviour. If it is intended, it should be documented (and ideally, this should be an option regardless of sync or async).