Deborah.Sarah.TOMLLogger
Deborah.Sarah.TOMLLogger.append_section_to_toml — Methodappend_section_to_toml(
info_file::String,
section::String,
content::OrderedCollections.OrderedDict,
) -> NothingAppend a new section to an existing TOML file.
Arguments
info_file: Path to theTOMLfile to which the section will be appended.section: Name of theTOMLsection (e.g.,"metadata").content:OrderedDictof key-value pairs to be written under the section.
Behavior
- Opens the file in append mode.
- Inserts a blank line, followed by a
[section]header. - Each key-value pair is written as
key = repr(value)forTOMLcompatibility.