pub async fn write_bytes<P: AsRef<Path>>( path: P, data: &[u8], ) -> Result<(), String>
Write bytes to a file (async), creating parent directories if needed.