I am pretty new with electron. Can anyone suggest me how to create a local folder using the electron. I see JavaScript does not have that capability.
The file system module (fs) is also available in electron. You can use mkdir
to create a directory:
var fs = require('fs');
// Without checking if dir already exists
fs.mkdir('PATH/TO/DIR');
// With checking if dir already exists
if (!fs.existsSync('PATH/TO/DIR')) fs.mkdir('PATH/TO/DIR');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With