Function dfraw_json_parser::parse_raw_module_dir_info
source · Expand description
Parse a directory of raws, and return a JSON string of the parsed raw module info files.
The first thing we do is check that the directory exists, and that it’s a directory. If it doesn’t exist, or it’s not a directory, we return an empty string
Arguments:
root_path: The path to the directory containing the raws.sourced_dir: The directory the root_path was found under.
Returns:
A JSON string containing the info about the raws for the given directory.