my problem is that I want to have the processing time outside the fs-stat-function. How do I achieve this? With async that does not work, or how would you do that?
var time;
time = fs.stat(path, function(err, stats){
timestamp = stats.mtimeMs;
console.log(timestamp); // 65463453
return timestamp;
});
How can I get the result from the "function(err,stats)" of "fs-stat" in the variable "time"?