zut.files.read_bytes

zut.files.read_bytes(path: str | PathLike, *, mkdir: bool = False, sudo: bool = False) bytes

Open the file in bytes mode, read it, and close the file.