impure functionexist
Inquire whether file or directory exists
Extends from Modelica.Icons.Function (Icon for functions).
Information
Syntax
result = Files.exist(name);
Description
Returns true, if "name" is an existing file or directory. If this is not the case, the function returns false.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | name | Name of file or directory |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | result | = true, if file or directory exists |