WOLFRAM SYSTEM MODELER

readDirectory

Read names of a directory (POSIX functions opendir, readdir, closedir)

Wolfram Language

In[1]:=
SystemModel["Modelica.Utilities.Internal.FileSystem.readDirectory"]
Out[1]:=

Syntax

names = readDirectory(directory, nNames)

Inputs (2)

directory

Type: String

Description: Name of the directory from which information is desired

nNames

Type: Integer

Description: Number of names that are returned (inquire with getNumberOfFiles)

Outputs (1)

names

Type: String[nNames]

Description: All file and directory names in any order from the desired directory