I explicitly set the access mode to R_OK as the access check is performed in preparation for reading the file (and F_OK only checks whether the file is visible to the current user).
A note on the fs-access deprecation warning discussion: regardless of whether not it's a problem or which package should be responsible for addressing it, the facts are that:
fs-access won't receive any updates so using the built-in fs module is preferable, and
Closes #66 Relates to #42
Remove the no-longer-necessary dependency on fs-access and use the built-in fs module's access function instead.
I explicitly set the access mode to
R_OK
as the access check is performed in preparation for reading the file (andF_OK
only checks whether the file is visible to the current user).A note on the fs-access deprecation warning discussion: regardless of whether not it's a problem or which package should be responsible for addressing it, the facts are that: