pub fn parse_raw_module_dir_info(root_path: &Path, sourced_dir: &str) -> String
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.