A Node Module for finding files by attributes. Originally developed to find files modified since a particular date.
Uses an eventemitter model so the results can start streaming back as soon as they are found.
If you call finder the following way, you get 'undefined is not a function' errors for every file match, because there is no default filterFunction and the code assumes such function was set in the options.
var finder = new FindFiles({
rootFolder: "/home"
});
If, for example, the filterFunction is set like this, everything works fine:
var finder = new FindFiles({
rootFolder: "/home",
filterFunction: function () {
return true;
}
});
If you call finder the following way, you get 'undefined is not a function' errors for every file match, because there is no default filterFunction and the code assumes such function was set in the options.
If, for example, the filterFunction is set like this, everything works fine: