Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
fix: use native 'hasAccess' flag on fs (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach authored and dpgraham committed Feb 19, 2019
1 parent 534c8fa commit 8ddccdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const md5 = B.promisify(md5file);
let fs = {
async hasAccess (path) {
try {
await this.access(path, fs.F_OK | fs.R_OK);
await this.access(path, _fs.R_OK);
} catch (err) {
return false;
}
Expand Down

0 comments on commit 8ddccdb

Please sign in to comment.