Skip to content

doc: add example for file existence with fs.stat

Checklist
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

doc

Description of change

Add an example on how to test if a file exists with fs.stat. Also add a link to the Common System Errors.

Fixed with help of @dschnei @narf101010

Fixes: https://github.com/nodejs/node/issues/6752

Merge request reports

Loading