.Modelica.Utilities.Files.assertNew

Information

Syntax

Files.assertNew(name);
Files.assertNew(name, message="This is not allowed");

Description

Triggers an assert, if "name" is an existing file or directory. The error message has the following structure:

File "<name>" already exists.
<message>

Interface

impure function assertNew
  extends Modelica.Icons.Function;
  input String name "Name of file or directory";
  input String message = "This is not allowed." "Message that should be printed after the default message in a new line";
end assertNew;

Generated at 2024-03-28T19:15:55Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos