CleanupSimPathļ
- CleanupSimPath(Sim_Path, verbose)ļ
Full definition:
function CleanupSimPath(Sim_Path, verbose)
Delete known openEMS output files from Sim_Path, then ensure the directory exists. Only whitelisted file patterns are removed; arbitrary user files are left untouched.
arguments: Sim_Path : simulation folder verbose : (optional, default 0) set to 1 to print each deleted file
Replaces the common rmdir(Sim_Path,āsā) / mkdir(Sim_Path) idiom with a safer, selective cleanup.
See also RunOpenEMS
author: Thorsten Liebig