projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial commit
[yaffs-website]
/
node_modules
/
gulp
/
node_modules
/
vinyl-fs
/
lib
/
src
/
getStats.js
1
'use strict';
2
3
var through2 = require('through2');
4
var fs = require('graceful-fs');
5
6
function getStats() {
7
return through2.obj(fetchStats);
8
}
9
10
function fetchStats(file, enc, cb) {
11
fs.lstat(file.path, function (err, stat) {
12
if (stat) {
13
file.stat = stat;
14
}
15
cb(err, file);
16
});
17
}
18
19
module.exports = getStats;