Skip to main content

create_config_document

Function create_config_document 

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

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.