WOLFRAM SYSTEM MODELER

sortDirectory

Sort directory in directories and files with alphabetic order<br><br>This class is declared protected in <a href="Modelica.Utilities.Files.list.html">Modelica.Utilities.Files.list</a>

Wolfram Language

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

Syntax

(orderedNames, nDirectories) = sortDirectory(directory, names)

Inputs (2)

directory

Type: String

Description: Directory that was read (including a trailing '/')

names

Type: String[:]

Description: File and directory names of a directory in any order

Outputs (2)

orderedNames

Type: String[size(names, 1)]

Description: Names of directories followed by names of files

nDirectories

Type: Integer

Description: The first nDirectories entries in orderedNames are directories