33
rated 0 times
[
38]
[
5]
/ answers: 1 / hits: 6384
/ 6 Years ago, tue, december 18, 2018, 12:00:00
I am trying to see if a file exists locally like this:
if (exec(`-f ~/.config/myApp/bookmarks.json`)) {
console.log('exists')
} else {
console.log('does not')
}
However, I get exists in the console whether the file exists or not
More From » bash