Function mdbook::utils::fs::create_file
source · pub fn create_file(path: &Path) -> Result<File>
Expand description
This function creates a file and returns it. But before creating the file it checks every directory in the path to see if it exists, and if it does not it will be created.