aboutsummaryrefslogtreecommitdiff
path: root/node_modules/clone-stats/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/clone-stats/index.js')
-rw-r--r--node_modules/clone-stats/index.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/node_modules/clone-stats/index.js b/node_modules/clone-stats/index.js
new file mode 100644
index 000000000..e797cfe6e
--- /dev/null
+++ b/node_modules/clone-stats/index.js
@@ -0,0 +1,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
+}