mirror of https://github.com/keeweb/keeweb.git
fixed ykman path on macos
This commit is contained in:
parent
7e4e61e005
commit
4abe63c00f
|
@ -84,7 +84,12 @@ const Launcher = {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
fileExists(path, callback) {
|
fileExists(path, callback) {
|
||||||
this.req('fs').exists(path, callback);
|
const fs = this.req('fs');
|
||||||
|
fs.access(path, fs.constants.F_OK, (err) => callback(!err));
|
||||||
|
},
|
||||||
|
fileExistsSync(path) {
|
||||||
|
const fs = this.req('fs');
|
||||||
|
return !fs.accessSync(path, fs.constants.F_OK);
|
||||||
},
|
},
|
||||||
deleteFile(path, callback) {
|
deleteFile(path, callback) {
|
||||||
this.req('fs').unlink(path, callback || noop);
|
this.req('fs').unlink(path, callback || noop);
|
||||||
|
|
Loading…
Reference in New Issue