oleics / node-filewalker

Fast and rock-solid asynchronous traversing of directories and files for node.js
67 stars 8 forks source link

Added readStreamOptions #18

Closed thiagodp closed 6 years ago

thiagodp commented 6 years ago

To be able to configure the ReadStream, as mentioned in the Issue 17, it was added an object readStreamOptions to filewalkers constructor:

filewalker( path, options, readStreamOptions )

The third parameter is optional and it assumes fs.createReadStream()'s default values.

oleics commented 6 years ago

I like this RM. Can you make it so, that the options for readStream are located in options.readStream with a empty object as default on null/undefined?

thiagodp commented 6 years ago

@oleics Done in PR 19.