bec_lib.file_utils.DeviceConfigWriter#

class DeviceConfigWriter(service_config: dict)[source]#

Bases: object

Device config writer class

Initialize the device config writer class. At the moment, this uses the same base_path as the log writer

Parameters:

service_config (dict) – Device config writer service config. Must at least contain a base_path.

Methods

create_directory

Create the device config directory.

get_recovery_directory

Compile the recovery config directory.

Attributes

directory

Get the device config directory.

create_directory(fname: str | None = None) None[source]#

Create the device config directory.

property directory: str#

Get the device config directory.

Returns:

String representation of device config directory

Return type:

str

get_recovery_directory() str[source]#

Compile the recovery config directory.