respect config

This commit is contained in:
Quaternions 2024-01-11 20:23:44 -08:00
parent 4d77895260
commit 30169ddc5b

View File

@ -721,13 +721,15 @@ async fn write_commit(config:WriteCommitConfig,b:Result<AResult<(AssetVersion,De
println!("writing files for version {}",asset_version.assetVersionNumber);
//clean output dir
{
if config.write_models||config.write_scripts{
let mut src=config.output_folder.clone();
src.push("src");
match std::fs::remove_dir_all(src){
Ok(())=>(),
Err(e)=>println!("remove_dir_all src failed {}",e),
}
}
if config.write_template{
let mut template=config.output_folder.clone();
template.push("template.rbxlx");
match std::fs::remove_file(template){