def _traversable_walk(tvbs: Iterator[PathLikeObj]) -> Iterator[PathLikeObj]:
    """Recursively walk through Path/Traversable objects, yielding all YAML files in deterministic order.

    :param tvbs: An iterator over :class:`PathLikeObj` objects, where each object is a file or directory
                 that potentially contains YAML files.

    :yields: :class:`PathLikeObj` objects representing YAML files found during the traversal.
    """
    for tvb in _filter_and_sort_files(tvbs):
        if tvb.is_file():
            yield tvb
        elif tvb.is_dir():
            try:
                yield from _traversable_walk(tvb.iterdir())
            except Exception as e:
                logger.debug("Can't list directory %s: %r", tvb, e)
Recursively walk through Path/Traversable objects, yielding all YAML files in deterministic order.

    :param tvbs: An iterator over :class:`PathLikeObj` objects, where each object is a file or directory
                 that potentially contains YAML files.

    :yields: :class:`PathLikeObj` objects representing YAML files found during the traversal.
    
patroni/postgresql/available_parameters/__init__.py