respect config
This commit is contained in:
parent
4d77895260
commit
30169ddc5b
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user