async fn write(path: &Path, text: &str) -> Result<()>
Write text to path in a way that leaves either the old draft or the new one, never half of one.
text
path