Skip to content

kumo.serde.load_files

kumo.serde.load_files { FILENAME, ... }
Since: Dev Builds Only

The functionality described in this section requires a dev build of KumoMTA. You can obtain a dev build by following the instructions in the Installation section.

Reads and parses a list of files in one call, returning their parsed values in the same order as the input list. A file whose name ends in .toml is parsed as TOML; any other file is parsed as JSON, with comments permitted as in kumo.serde.json_load. Use this instead of making one kumo.serde.toml_load or kumo.serde.json_load call per file, such as when loading a directory of many small configuration files.

If any file cannot be read or parsed, the call raises an error naming that file and returns no values.

See also kumo.serde.toml_load and kumo.serde.json_load