WOLFRAM SYSTEM MODELER

exist

Inquire whether file or directory exists

Wolfram Language

In[1]:=
SystemModel["Modelica.Utilities.Files.exist"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

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.

Syntax

result = exist(name)

Inputs (1)

name

Type: String

Description: Name of file or directory

Outputs (1)

result

Type: Boolean

Description: = true, if file or directory exists