Synchronous, recursive readdir. Returns an array of (full) filepaths.
var readdirrsync = ;var dirStructure = ; // return type: Array/* dirStructure:[ '/Users/jb/Developing/readdirRSync/test/testdir/file1.txt','/Users/jb/Developing/readdirRSync/test/testdir/file2.txt','/Users/jb/Developing/readdirRSync/test/testdir/file3.txt','/Users/jb/Developing/readdirRSync/test/testdir/subdir/file4.txt' ]*/
This module is handy, if you want to walk through the structure on a 'save' path. If it would be asynchronous the sorting of the structure could vary from time to time. Example use case: Generating hashes, there you will always want to put fileX before fileY because otherwise the hash would change!
var readdirrsync = ;var crypto = ;var hash = crypto;var files = ;for var i in fileshash;console;