WOLFRAM SYSTEM MODELER

FileSystem

Internal package with external functions as interface to the file system

Package Contents

mkdir

Make directory (POSIX: 'mkdir')

rmdir

Remove empty directory (POSIX function 'rmdir')

stat

Inquire file information (POSIX function 'stat')

rename

Rename existing file or directory (C function 'rename')

removeFile

Remove existing file (C function 'remove')

copyFile

Copy existing file (C functions 'fopen', 'fread', 'fwrite', 'fclose')

readDirectory

Read names of a directory (POSIX functions opendir, readdir, closedir)

getNumberOfFiles

Get number of files and directories in a directory (POSIX functions opendir, readdir, closedir)

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

Package Internal.FileSystem is an internal package that contains low level functions as interface to the file system. These functions should not be called directly in a scripting environment since more convenient functions are provided in packages Files and Systems.

Note, the functions in this package are direct interfaces to functions of POSIX and of the standard C library. Errors occurring in these functions are treated by triggering a Modelica assert. Therefore, the functions in this package return only for a successful operation. Furthermore, the representation of a string is hidden by this interface, especially if the operating system supports Unicode characters.

Wolfram Language

In[1]:=
SystemModel["Modelica.Utilities.Internal.FileSystem"]
Out[1]:=