cowboy/node-glob-whatev — pull request #6 by thejoecode (2012-09-17 19:02:08+00:00)
Title: If file can't be "stat"ed, check that it exists before adding to filepaths

Ran into this issue using grunt to watch a network share on windows. Bit of an edge case but grunt blows up when a file gets deleted because readdirSync incorrectly returns the deleted file for a few seconds after deletion while statSync throws. Using existsSync in this way should only add a few extra checks (when files are deleted).