I'm trying to get the size of the folder that is in my project, the folder is called Testes
, and in my file server.js
I'm using the following method:
fs.stat('/Testes', function(err,stats){
if(err) return console.log(err);
console.log(null, stats.size);
})
But it's always returning me null, 0
and not the actual size of the folder, have I forgotten anything?