node-filewalker icon indicating copy to clipboard operation
node-filewalker copied to clipboard

Fast and rock-solid asynchronous traversing of directories and files for node.js

Results 12 node-filewalker issues
Sort by recently updated
recently updated
newest added

Merge branches. Contains PR #19 and #22.

- [X] Closes #21 - [X] Unit tests added - [X] Documentation updated

Add an option `fs` to be able to use in-memory file systems such as [memfs](https://github.com/streamich/memfs). This is very useful for testing purposes. Example: ```javascript var memfs = require( 'memfs' );...

Method `_stat` calls `_emitDir` when a directory is found, even when recursion is disabled, and this makes the counter `dirs` to accumulate the number of analyzed directories. For instance, let's...

node v6.2.2 got the following, guessing because this directory has some funky filenames: TypeError: "encoding" must be a valid string encoding at fromString (buffer.js:226:11) at Function.Buffer.from (buffer.js:131:12) at createWriteReq (net.js:749:45)...

This replaces the [PR 18](https://github.com/oleics/node-filewalker/pull/18). As mentioned in [Issue 17](https://github.com/oleics/node-filewalker/issues/17), but now `readStream` may be included in options, instead of being passed as an argument to filewalker. ```js var options...

I would like to increase the number of bytes read each time. This is especially important when dealing with large files. How can I do this with `node-filewalker`? Thanks

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:...

Just an idea of how to ignore folders, which can mean a performance benefit when dealing with things like node_modules or .git

It could be useful to provide a way to ignore folders (node_modules, .git). At the moment I am doing that postprocessing the files, but if done earlier it could save...