We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86cc213 commit 3527c72Copy full SHA for 3527c72
lib/tools/file.js
@@ -2,7 +2,7 @@
2
var fs = require('fs');
3
function fileExists(path) {
4
try {
5
- fs.accessSync(path, fs.R_OK | fs.W_OK);
+ fs.accessSync(path, fs.F_OK);
6
}
7
catch (e) {
8
if (e) {
src/tools/file.ts
@@ -2,7 +2,7 @@ import * as fs from 'fs';
export function fileExists(path: string): boolean {
} catch (e) {
if (e.code !== 'ENOENT') {
0 commit comments