You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.js 228B

12345678910111213
  1. var Stat = require('fs').Stats
  2. module.exports = cloneStats
  3. function cloneStats(stats) {
  4. var replacement = new Stat
  5. Object.keys(stats).forEach(function(key) {
  6. replacement[key] = stats[key]
  7. })
  8. return replacement
  9. }