from pathlib import Path


def find_db_files(s_db_path: str):
    """Find all csv files in a given directory and store them in a list.

    Args:
            s_db_path: A string with the data path to the database folder.

    Returns:
        files: A list with db (.csv) files in the folder.
    """
    s_data_path = Path(s_db_path)
    files = []
    for item in s_data_path.glob("**/*"):
        if item.suffix in [".csv"]:
            files.append(Path.resolve(item))
    return files