from pathlib import Path
import re


def is_tusd_file(p: Path) -> bool:
    """
    Check whether filename looks like something tusd could have created.

    Used to filter files for cleanup to avoid deleting something wrong.
    """
    return re.match("^[0-9a-f]{32}(\\.info)?$", p.name) is not None