This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Comparison of methods to list all files in a directory | |
* and subdirectories ("recursive directory walk"). | |
* | |
* gunargessner.com 2015-12-25 | |
* | |
*/ | |
var fs = require('fs'); | |
var fsPath = require('path'); | |
var _ = require('highland'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This function takes a directory path and returns a flat stream | |
* with stat objects + full file path in the .path property. | |
*/ | |
var path = require('path'); | |
var h = require('highland'); | |
var readdir = h.wrapCallback(require('fs').readdir); | |
var stat = h.wrapCallback(require('fs').stat); |
NewerOlder