node-dir
node-dir copied to clipboard
Missing results when using the synchronous files function
When using the sync files function : files(dir, {sync:true}) no value is returned.
Indeed in the file lib/paths.js in the definition of the return line is : if(options.sync)return;
And should be : if(options.sync)return results;