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
SysDirDelete2RTS_IEC_RESULTReturns the runtime system error code (see CmpErrors_Itf.library)
Input
szDirREFERENCE TO STRING
Name of directory
xRecursiveBOOLDelete a whole folder tree
xKeepDirBOOLKeep the starting folder