pub fn create_output_directory(
output_dir: &Path,
allow_overwrite: bool,
) -> Result<bool>
Expand description
Create a new output directory for the model, optionally overwriting existing data
§Arguments
output_dir
- The output directory to create/overwriteallow_overwrite
- Whether to delete and recreate the folder if it is non-empty
§Returns
True if the output dir contained existing data that was deleted, false if not, or an error.