How to use the readdirSyncRecursive function from wrench

Find comprehensive JavaScript wrench.readdirSyncRecursive code examples handpicked from public code repositorys.

442
443
444
445
446
447
448
449
450
451
var files;

this.directories.forEach(function (dir) {
    console.log('Scanning source files: ' + dir);
    try {
        wrench.readdirSyncRecursive(dir).forEach(function (fn) {
            var absFn = path.normalize(path.join(dir, fn));   // './foo/bar.js' -> 'foo/bar.js'
            var ent;

            if (fs.existsSync(absFn) &&
fork icon20
star icon77
watch icon5