()
| 351 | if (err) throw err; |
| 352 | var i = dir_files.length; |
| 353 | var check_complete = function () { |
| 354 | if (i === 0) { |
| 355 | callback(files); |
| 356 | } |
| 357 | }; |
| 358 | check_complete(); |
| 359 | dir_files.forEach(function (path) { |
| 360 | fs.stat(root_path + '/' + path, function (err, stat) { |