DirExists

Checks whether a specified directory already exists on the server.
Syntax
METHOD DirExists : BOOL
VAR_INPUT
fbFtpConnection : REFERENCE TO FB_FtpConnection;
sDirectory : STRING;
END_VAR
Return value
Name | Type | Description |
---|---|---|
DirExists | BOOL | Returns TRUE when the method has completed. Whether the action was successful can be read from the bError variable of the function block. |
bExists | BOOL | Returns TRUE if the directory already exists. |
Inputs
Name | Type | Description |
---|---|---|
fbFtpConnection | References the server connection to be used for the operation. | |
sDirectory | STRING | Path to the directory. |