impure functionreadDirectory

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

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

TypeNameDefaultDescription
StringdirectoryName of the directory from which information is desired
IntegernNamesNumber of names that are returned (inquire with getNumberOfFiles)

Outputs

TypeNameDefaultDescription
String[nNames]namesAll file and directory names in any order from the desired directory