FILE.DirRemove (FB; Prefix fildrm)

This function block of the CAA_File.library deletes a directory.

The directory cannot be deleted until the access on the properties has been terminated via FILE.DirClose.

Input:

xExecute

BOOL

see: “CAA 指南”

xAbort

BOOL

see: “CAA 指南”

udiTimeOut

UDINT

 

sDirName

CAA.FILENAME

Directory name

xRecursive

BOOL

Condition for deleting the directory:

TRUE: Directory is deleted including all files,

FALSE: Directory is only deleted, if no files and sub-directories are included; otherwise an error will be dumped

Output:

xDone

BOOL

see: “CAA 指南”

xBusy

BOOL

see: “CAA 指南”

xError

BOOL

see: “CAA 指南”

xAborted

BOOL

see: “CAA 指南”

eError

FILE.ERROR 

Error ID

5107 - FILE.NOT_EMPTY:

- Directory not empty; will be generated only if xRecursive = FALSE