FILE.DirOpen

Navigation:  Libraries > CT File Access > Function Blocks - File Directory Services >

FILE.DirOpen

Previous pageReturn to chapter overviewNext page

This function block opens a directory the entries (files and sub-directories) of which should be read with the help of the function block FILE.DirList. The return value is a handle. There may be restrictions concerning the specification of the directory name, e.g. only capital letters allowed, for different targets. The function FILE.GetProperty shows these restrictions.

Inputs:

xExecute

 

BOOL


sDirName

CAA FILENAME

Directory name:

No special characters,

Separator for sub-directories “/”,

Absolute or relative path specifications

Recommendation:

No empty spaces

Use capital letters

 

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

hDir

CAA.HANDLE

Handle of the directory