baml.fs.write_bytes

Writes raw bytes `content` to the file at `path`, creating or truncating it. Returns the number of bytes written.

Reference version

Signature

function baml.fs.write_bytes(path: string, content: uint8array) -> int throws baml.errors.Io

Writes raw bytes content to the file at path, creating or truncating it. Returns the number of bytes written.

Source:<builtin>/baml/ns_fs/fs.bamlbytes 50105120