pub async fn write_string<P: AsRef<Path>>( path: P, content: &str, ) -> Result<(), String>
Write a string to a file (async), creating parent directories if needed.