build_directory_metadata

omni.graph.tools.build_directory_metadata(ext_path: str, destination: pathlib.Path | None) dict[str, dict | str]

Find all of the node type metadata that can be found in the given directory. :param ext_path: Directory containing the .ogn files belonging to this extension, traversed fully to find them. :param destination: Location of file to write metadata. Do not write anything if None.

Raises

OgnScanError – If the ext_path was not a directory or could not be read, or any of the .ogn files failed parsing.