Writing is now also back!
parent
adc11ec654
commit
af00347fa5
|
@ -12,7 +12,8 @@ pub fn load_yaml_folder(default: String, folder: &Path) -> Vec<String> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if return_yaml.capacity() < 1 {
|
if return_yaml.capacity() < 1 {
|
||||||
return_yaml.push(default);
|
return_yaml.push(default.clone());
|
||||||
|
fs::write(folder.join("default.yml"), default.clone()).expect("Error writing default");
|
||||||
}
|
}
|
||||||
return return_yaml;
|
return return_yaml;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue