When running from RAM and then building the project again, the target directory is not deleted.
Commands:
[ClearTarget] If,ExistDir,"%TargetDir%",Echo,"Deleting [%targetdir%]" If,ExistDir,"%TargetDir%",DirDelete,"%TargetDir%" If,ExistDir,"%TargetDir%",Exit,"%TargetDir% could not be deleted!"
After the first run I have the following folder structure
[attachment=323:attachment]
In the second run, after executing [ClearTarget], I have:
[attachment=324:attachment]
The Ramboot folder is emptied, but not deleted. Everything else remains.
When before the second run I manually delete the ramboot folder, I get:
[attachment=325:attachment]
The target folder is completely emptied, but still exists!
@Nuno: I think a short view into the source code is necessary.
Peter