WOLFRAM SYSTEM MODELER
assertNewTrigger an assert, if a file or directory exists |
SystemModel["Modelica.Utilities.Files.assertNew"]
This information is part of the Modelica Standard Library maintained by the Modelica Association.
Files.assertNew(name); Files.assertNew(name, message="This is not allowed");
Triggers an assert, if "name" is an existing file or directory. The error message has the following structure:
File "<name>" already exists. <message>
name |
Type: String Description: Name of file or directory |
---|---|
message |
Default Value: "This is not allowed." Type: String Description: Message that should be printed after the default message in a new line |