Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

electron check if file exists

if (fs.existsSync(`~/.config/myApp/bookmarks.json`)) {
  console.log('exists')
} else {
  console.log('does not')
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #electron #check #file #exists
ADD COMMENT
Topic
Name
7+3 =