Skip to content

Commit

Permalink
Fix bug: #3269
Browse files Browse the repository at this point in the history
- add code for deleteFile in Compiler/Script/CevalScript.mo
- add test in: testsuite/openmodelica/interactive-API/Bug3269_deleteFile.mos


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@25484 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Apr 10, 2015
1 parent 14ffb43 commit ab7e764
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Compiler/Script/CevalScript.mo
Expand Up @@ -2039,6 +2039,12 @@ algorithm
then
(cache,Values.BOOL(false),st);

case (cache,_,"deleteFile",{Values.STRING(str)},st,_)
equation
b = if System.removeFile(str) == 0 then true else false;
then
(cache,Values.BOOL(b),st);

case (cache,_,"compareFiles",{Values.STRING(str1),Values.STRING(str2)},st,_)
equation
b = System.fileContentsEqual(str1,str2);
Expand Down

0 comments on commit ab7e764

Please sign in to comment.