DIRECTORY_CREATE
Use
Creates the directory with the specified path. The parent directory has to exist. If the parent directory does not exist, this function will fail. In order to create a directory whose parent directory does not yet exist, create the intended parent directory first and then create the desired directory.
Arguments
|
[IMPORTING] directory TYPE STRING |
Path of directory to create. Environment variables are not supported in the directory path. |
|
[CHANGING] rc TYPE I |
Return code indicating whether the directory was created successfully or not. Possible values:
|
Exceptions
|
CNTL_ERROR |
Thrown if neither Windows nor Java nor HTML GUI is used or the operation is not supported by the GUI used. |
|
DIRECTORY_ACCESS_DENIED |
This exception is raised if the client PC user does not have the permission to create the specified directory. |
|
DIRECTORY_ALREADY_EXISTS |
In this case the specified directory already exists. |
|
DIRECTORY_CREATE_FAILED |
Currently not used. |
|
ERROR_NO_GUI |
Currently not used. |
|
NOT_SUPPORTED_BY_GUI |
Currently not used. |
|
PATH_NOT_FOUND |
If the parent directory for the specified directory does not exist, this exception will be thrown. |
|
UNKNOWN_ERROR |
UNKNOWN_ERROR is fired if the creation of the directory fails and neither the directory exists nor access is denied nor the parent directory exists. |
|
WRONG_PARAMETER |
Raised if no directory path is specified. |