X-Git-Url: https://git.josue.xyz/?p=VSoRC%2F.git;a=blobdiff_plain;f=node_modules%2Fnode-static%2Flib%2Fnode-static%2Futil.js;fp=node_modules%2Fnode-static%2Flib%2Fnode-static%2Futil.js;h=0000000000000000000000000000000000000000;hp=02de548dfb80dec8b31fac34ff323b4cc356a074;hb=5e96dd57ddd883604e87f62bdddcb111c63a6e1a;hpb=acb5f682a2b75b972710cabd81658f63071324b0 diff --git a/node_modules/node-static/lib/node-static/util.js b/node_modules/node-static/lib/node-static/util.js deleted file mode 100644 index 02de548..0000000 --- a/node_modules/node-static/lib/node-static/util.js +++ /dev/null @@ -1,30 +0,0 @@ -var fs = require('fs') - , path = require('path'); - -exports.mstat = function (dir, files, callback) { - (function mstat(files, stats) { - var file = files.shift(); - - if (file) { - fs.stat(path.join(dir, file), function (e, stat) { - if (e) { - callback(e); - } else { - mstat(files, stats.concat([stat])); - } - }); - } else { - callback(null, { - size: stats.reduce(function (total, stat) { - return total + stat.size; - }, 0), - mtime: stats.reduce(function (latest, stat) { - return latest > stat.mtime ? latest : stat.mtime; - }, 0), - ino: stats.reduce(function (total, stat) { - return total + stat.ino; - }, 0) - }); - } - })(files.slice(0), []); -};