.Modelica.Utilities.Internal.FileSystem

Information

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.

Contents

NameDescription
 mkdirMake directory (POSIX: 'mkdir')
 rmdirRemove empty directory (POSIX function 'rmdir')
 statInquire file information (POSIX function 'stat')
 renameRename existing file or directory (C function 'rename')
 removeFileRemove existing file (C function 'remove')
 copyFileCopy existing file (C functions 'fopen', 'fread', 'fwrite', 'fclose')
 readDirectoryRead names of a directory (POSIX functions opendir, readdir, closedir)
 getNumberOfFilesGet number of files and directories in a directory (POSIX functions opendir, readdir, closedir)

Generated at 2024-12-17T19:26:02Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos