blob: e797cfe6eb0ef537bfc2deb3ae967a3c680ccbdc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
var Stat = require('fs').Stats
module.exports = cloneStats
function cloneStats(stats) {
var replacement = new Stat
Object.keys(stats).forEach(function(key) {
replacement[key] = stats[key]
})
return replacement
}
|