pub async fn write_bytes( path: impl AsRef<Path>, bytes: &[u8], ) -> Result<(), FsError>
Write a bounded caller-owned byte slice to a file, replacing its contents.