DirInfoFlags (GVL) ¶ Directory info flags InOut: Scope Name Type Initial Comment Constant DF_FILE DWORD 16#0 Entry is a file DF_DIRECTORY DWORD 16#2 Entry is a directory
SysDirClose (FUN) ¶ FUNCTION SysDirClose : RTS_IEC_RESULT Close an open directory InOut: Scope Name Type Comment Return SysDirClose RTS_IEC_RESULT Returns the runtime system error code (see CmpErrors_Itf.library) Input hDir RTS_IEC_HANDLE Handle to directory opened with SysDirOpen
SysDirCopy (FUN) ¶ FUNCTION SysDirCopy : RTS_IEC_RESULT Copies the contents of szSourceDir to szDestDir. Nonexisting destination path will be created. Depending of the parameters, all subdirectories and its content will be copied too, and existing files will be overwritten. NOTE: Empty direcories will be copied if xRecursive is TRUE. InOut: Scope Name Type Comment Return SysDirCopy RTS_IEC_RESULT Returns the runtime system error code (see CmpErrors_Itf.library) Input szDestDir REFERENCE TO STRING Name of destination directory szSourceDir REFERENCE TO STRING Name of source directory xRecursive BOOL TRUE: all subdirectories and their contents are copied, FALSE: subdirectories are omitted xOverwrite BOOL TRUE: existing files are overwritten, FALSE: existing files are left untouched
SysDirCreate (FUN) ¶ FUNCTION SysDirCreate : RTS_IEC_RESULT Creates a new directory with the specified name InOut: Scope Name Type Comment Return SysDirCreate RTS_IEC_RESULT Returns the runtime system error code (see CmpErrors_Itf.library) Input szDir REFERENCE TO STRING Name of the directory
SysDirCreate2 (FUN) ¶ FUNCTION SysDirCreate2 : RTS_IEC_RESULT Creates a new directory with the specified name. If xRecursive is set, a full path is created, i.e. all missing parent directories are created too. InOut: Scope Name Type Comment Return SysDirCreate2 RTS_IEC_RESULT Returns the runtime system error code (see CmpErrors_Itf.library) Input szDir REFERENCE TO STRING Name of the directory xRecursive BOOL Create a full path
SysDirDelete (FUN) ¶ FUNCTION SysDirDelete : RTS_IEC_RESULT Deletes a directory with the specified name InOut: Scope Name Type Comment Return SysDirDelete RTS_IEC_RESULT Returns the runtime system error code (see CmpErrors_Itf.library) Input szDir REFERENCE TO STRING Name of directory
SysDirDelete2 (FUN) ¶ FUNCTION SysDirDelete2 : RTS_IEC_RESULT Deletes a directory with the specified name If xRecursive is set, a whole folder tree can be deleted, i.e. all subfolders and files are deleted. If xRecursive and xKeepDir are set, the folder is kept but its contents is deleted. InOut: Scope Name Type Comment Return SysDirDelete2 RTS_IEC_RESULT Returns the runtime system error code (see CmpErrors_Itf.library) Input szDir REFERENCE TO STRING Name of directory xRecursive BOOL Delete a whole folder tree xKeepDir BOOL Keep the starting folder
tSysDirCreate (STRUCT) ¶ TYPE tSysDirCreate : STRUCT InOut: Name Type Comment szDir STRING(254) Name of the directory pulOut POINTER TO RTS_IEC_RESULT Pointer to runtime system error code (see CmpErrors.library)
tSysDirDelete (STRUCT) ¶ TYPE tSysDirDelete : STRUCT InOut: Name Type Comment szDir STRING(254) Name of directory pulOut POINTER TO RTS_IEC_RESULT Pointer to runtime system error code (see CmpErrors.library)
tSysDirGetCurrent (STRUCT) ¶ TYPE tSysDirGetCurrent : STRUCT InOut: Name Type Comment szDir STRING(254) Name of current directory diMaxDirLen DINT Max lenght of directory buffer (0..80) pulOut POINTER TO RTS_IEC_RESULT Pointer to runtime system error code (see CmpErrors.library)