joyent/node — pull request #8358 by robertkowalski (2014-09-12 15:55:19+00:00)
Title: fs: add fs.fstatExistsSync

I talked with @tjfontaine on that at lxjs and nodeconf.eu:

Currently `fs.fstatSync` does throw if the file does not exist,
so current code has be be wrapped by a try/catch statement every
time.

This method returns false and does not throw when a given path
does not exist, like `fs.existsSync`.

`fs.fstatSync` was is not changed and a new method is introduced
for backwards-compability.