def _pretty_print(child: dict, is_file: bool = False) -> str:
    """Converts a child folder entry into a console display string."""
    if is_file:
        prefix = 4 * ' '
        icon = '~'
        name = child['name']
    else:
        prefix = 2 * ' '
        icon = '*' if child['spec'] else '-'
        name = child['folder']

    return '{}{} {}'.format(prefix, icon, name)