impure functionreadDirectory
Read names of a directory (POSIX functions opendir, readdir, closedir)
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | directory | Name of the directory from which information is desired | |
| Integer | nNames | Number of names that are returned (inquire with getNumberOfFiles) |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| String[nNames] | names | All file and directory names in any order from the desired directory |