FILE.DirCreate

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

FILE.DirCreate

Previous pageReturn to chapter overviewNext page

This function block creates a sub-directory on the standard directory. If the sub-directory already exists, an error message is generated. There may be restrictions concerning the specification of the directory name, for example 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

xParents

BOOL

TRUE: - missing sub-directories will be created automatically,

FALSE: - missing sub-directories will cause an error message

 

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