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