Skip to content

[v9.x backport] fs: use fs.access in fs.exists

Uses fs.access to implement fs.exists functionality. Fixes a issue, when a file exists but user does not have privileges to do stat on the file.

Original PR: https://github.com/nodejs/node/pull/18618

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading