pub fn write_file(path: &str, bytes: &[u8]) -> Result<(), String>
Write bytes to a file (~-expandable path), creating parent dirs.
~