Skip to content

Hangs after scanning 19k files #16

Description

@archupsg03

My directory has 10k files, and am using the below code

var started = Date.now();
var cnt = 0;
var filewalker = require('filewalker');

var options = {
maxPending: -1,
maxAttempts: 3,
// attemptTimeout: 10000,
// recursive: true,
// matchRegExp: /.(log)$/,
// matchRegExp: /.(json)|(md)$/,
};

filewalker('/home/archupsg03/test_dir')
.on('file', function(p, s) {
cnt = cnt + 1;
console.log('%s', p);
console.log('%d', cnt)
})
.on('done', function() {
var duration = Date.now()-started;
console.log('%d ms', duration);
})
.walk();

Scan of directory hangs after 19k files.
OS - linux

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions