Recursively parses a directory to it's leaf nodes. Creates a JSON (info.json) containing the tree structure of the given directory