Q:

electron check if file exists

if (fs.existsSync(`~/.config/myApp/bookmarks.json`)) {
  console.log('exists')
} else {
  console.log('does not')
}
0

New to Communities?

Join the community