Is it better to write code that deals with file creation and deletion in main or renderer process?


#1

is it better to write code that deals with file creation and deletion using Node.js’ fs module in main or renderer process? why?
thanks


#2

You may want to take a look at this topic:

Basically, unless you have a specific reason to put something into the main process, it is generally better to do things in the renderer process.