MCPcopy
hub / github.com/mandarons/icloud-docker / get_root_destination_path

Function get_root_destination_path

src/config_parser.py:342–364  ·  view source on GitHub ↗

Get root destination path from config without creating directory. Args: config: Configuration dictionary Returns: Root destination path string

(config: dict)

Source from the content-addressed store, hash-verified

340
341
342def 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
367def prepare_root_destination(config: dict) -> str:

Callers 1

prepare_root_destinationFunction · 0.85

Calls 3

traverse_config_pathFunction · 0.90

Tested by

no test coverage detected