.OpenModelica.Scripting.compareFilesAndMove

Information

Compares newFile and oldFile. If they differ, overwrite oldFile with newFile

Basically: test -f ../oldFile && cmp newFile oldFile || mv newFile oldFile

Interface

impure function compareFilesAndMove
  input String newFile;
  input String oldFile;
  output Boolean success;
end compareFilesAndMove;

Generated at 2025-01-21T19:25:52Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos