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
| Type | Name | Default | Description |
|---|---|---|---|
| String | name | If name is a directory, list directory content. If it is a file, list the file content |
Contents
| Name | Description |
|---|---|
| List content of file | |
| Sort directory in directories and files with alphabetic order | |
| List content of directory |