impure functionlist

List content of file or directory

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

Information

Syntax

Files.list(name);

Description

If "name" is a regular file, the content of the file is printed.

If "name" is a directory, the directory and file names in the "name" directory are printed in sorted order.

Inputs

TypeNameDefaultDescription
StringnameIf name is a directory, list directory content. If it is a file, list the file content

Contents

NameDescription
listFileprotectedList content of file
sortDirectoryprotectedSort directory in directories and files with alphabetic order
listDirectoryprotectedList content of directory