pub fn save(path: &Path, data: &StoreData) -> Result<(), String>
Writes a store atomically: a temporary file in the same directory, synced, then renamed over the old one.