This function reads directory or file properties. The function block needs a valid handle which identifies the directory as a transfer parameter. The information is written to structure ”deDirEntry” of type ”FILE.DIR_ENTRY”. If the function block cannot find any further entries the error message ”FILE.NO_MORE_ENTRIES” is generated and the entries in the structure ”deDirEntry” are deleted.
Inputs:
xExecute
|
BOOL |
|
hDir |
CAA HANDLE |
Handle of the directory |
Outputs:
xDone
|
BOOL |
|
xBusy |
BOOL |
|
xError |
BOOL |
|
eError |
FILE.ERROR |
Error ID 5104 - FILE.NOT_EXIST - Directory does not exist 5105 - FILE.EXIST: - Directory already exists |
deDirEntry |
FILE.DIR_ENTRY |
Information on the directory or file |