pub fn create_config_document(path: &Path, body: &str) -> Result<()>
Create a config file only if it is still absent when the shared lock is acquired. This closes the exists()/create race in first-run writers.
exists()