zut.write_bytes

zut.write_bytes(path: str | PathLike, data, *, sudo=False)

Open the file in bytes mode, write to it, and close the file.