Skip to main content

write_atomic

Function write_atomic 

Source
pub fn write_atomic(path: &Path, text: &str) -> Result<()>
Expand description

Temp file next to path, then a rename: a reader (Obsidian’s file watcher, a git add) never sees half a note.