Get root destination path from config without creating directory. Args: config: Configuration dictionary Returns: Root destination path string
(config: dict)
| 340 | |
| 341 | |
| 342 | def get_root_destination_path(config: dict) -> str: |
| 343 | """Get root destination path from config without creating directory. |
| 344 | |
| 345 | Args: |
| 346 | config: Configuration dictionary |
| 347 | |
| 348 | Returns: |
| 349 | Root destination path string |
| 350 | """ |
| 351 | config_path = ["app", "root"] |
| 352 | root_destination = get_config_value_or_default( |
| 353 | config=config, |
| 354 | config_path=config_path, |
| 355 | default=DEFAULT_ROOT_DESTINATION, |
| 356 | ) |
| 357 | |
| 358 | if not traverse_config_path(config=config, config_path=config_path): |
| 359 | log_config_not_found_warning( |
| 360 | config_path, |
| 361 | f"root destination is missing. Using default root destination: {root_destination}", |
| 362 | ) |
| 363 | |
| 364 | return root_destination |
| 365 | |
| 366 | |
| 367 | def prepare_root_destination(config: dict) -> str: |
no test coverage detected