Takes a target path on disk, recursively walks it and returns a JSON object containing directory and file information.