zut.files.write_bytes

zut.files.write_bytes(path: str | Path, data)

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