def METHOD_NAME() -> Path:
    """
    Get the path to the spotdl folder.
    ### Returns
    - The path to the spotdl folder.
    ### Notes
    - If the spotdl directory does not exist, it will be created.
    """
    # Check if os is linux
    if platform.system() == "Linux":
        # if platform is linux, and XDG DATA HOME spotdl folder exists, use it
        user_data_dir = Path(platformdirs.user_data_dir("spotdl", "spotDL"))
        if user_data_dir.exists():
            return user_data_dir
    spotdl_path = Path(os.path.expanduser("~"), ".spotdl")
    if not spotdl_path.exists():
        os.mkdir(spotdl_path)
    return spotdl_path