tschaub / mock-fs

Configurable mock for the fs module
https://npmjs.org/package/mock-fs
Other
911 stars 86 forks source link

fs.access() on a symlink should resolve it #216

Open DamienCassou opened 7 years ago

DamienCassou commented 7 years ago

I have the impression that your access() method on a symbolic link differs from what nodejs does and what the unix version does. ACCESS(2) says:

If pathname is a symbolic link, it is dereferenced.

I think your code does not dereference the symlink.