A function for node.js that iterates recursively through a directory structure and returns it as a normal array. Supports glob syntax to ignore files if needed.