I am new to NodeJS and I'm having a hard time decrypting the mode value and figuring out how to change the mode to remove an attribute like read-only. Here is how I found this folder to have a mode of 16822. How do I determine what 16822 means in windows and then how do I change mode so that it does not have a read only attr?
fs.mkdir('./build');
fs.stat('./build', function(err, stats){
if(stats.isDirectory()){
console.log('Its a dir');
for(var i in stats){
if('function' !== typeof stats[i]){
console.log(i + '\t= ' + stats[i]);
}
}
}
});