mirror of https://github.com/keeweb/keeweb
fixed ykman path on macos
parent
7e4e61e005
commit
4abe63c00f
|
@ -84,7 +84,12 @@ const Launcher = {
|
|||
});
|
||||
},
|
||||
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) {
|
||||
this.req('fs').unlink(path, callback || noop);
|
||||
|
|
Loading…
Reference in New Issue