FileExists

Checks if a given file exists on the server.
Syntax
METHOD FileExists : BOOL
VAR_INPUT
fbFtpConnection : REFERENCE TO FB_FtpConnection;
sFilePath : STRING;
END_VAR
Return value
Name | Type | Description |
---|---|---|
FileExists | 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 file exists on the server. |
Inputs
Name | Type | Description |
---|---|---|
fbFtpConnection | References the server connection to be used for the operation. | |
sFilePath | STRING | Path to the file on the server. |