recursive-readdir-sync1.0.6 • Public • Published
NodeJS library to recursively read a directory path's contents synchronously
A simple Node module for synchronously listing all files in a directory, or in any subdirectories.
It does not list directories themselves.
This library uses synchronous filesystem calls. That means this library uses BLOCKING calls. Keep that in mind when using it.
npm install recursive-readdir-sync
var recursiveReadSync =files;tryfiles = ;catcherriferrerrno === 34console;else//something unrelated went wrong, rethrowthrow err;console;//loop over resulting filesforvar i = 0 len = fileslength; i < len; i++console;