Rozbot/lib/promise/fs-stat.js
2016-07-11 23:24:15 -04:00

8 lines
183 B
JavaScript

var fs = require('fs');
var promise = require('promise-polyfill');
module.exports = function(path) {
return new promise(function(resolve, reject) {
resolve(fs.stat(path));
});
}