fragphace/grunt-rm — pull request #3 by pcottle (2012-12-14 07:07:35+00:00)
Title: change to fs.existsSync with backwards compatibility

path.existsSync is deprecated as of Node 0.7+, and generates a warning message during the task execution.

This detects if fs.existsSync exists and uses that, otherwise it reverts to the old method to maintain backwards compatibility.

more info here:
http://stackoverflow.com/questions/4482686/check-synchronously-if-file-directory-exists-in-node-js

Hope this helps!