It works properly when I run the same code locally using Electron JS.
var dir = './test-new-folder'; // OR var dir = 'test-new-folder';
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir, '0777', true);
}
The above code works properly in my local and creates a folder named 'test-new-folder' inside my root folder.
But after creating it's desktop application on MAC,
Why this code doesn't work? Why doesn't it create 'test-new-folder'? What could be the work around for this?
Also I want to track/get all the data which will be pushed in this newly created folder! Can I get such events? Or any suggestions for this?