def METHOD_NAME(self, filelist: Path) -> None:
    filelist.parent.mkdir(parents=True, exist_ok=True)
    contents = "%{ansible_collections_dir}/" + self.namespace
    print(f"Writing filelist to {filelist}")
    with open(filelist, "w", encoding="utf-8") as file:
        file.write(contents)