Skip to main content

create_file

Function create_file 

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

Create a new doing file at path with a single default section.

If the file already exists and is non-empty, this is a no-op. Creates parent directories as needed.