impure functionsortDirectory
Sort directory in directories and files with alphabetic order
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | directory | Directory that was read (including a trailing '/') | |
| String[:] | names | File and directory names of a directory in any order |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| String[size(names, 1)] | orderedNames | Names of directories followed by names of files | |
| Integer | nDirectories | The first nDirectories entries in orderedNames are directories |