FileExists

FileExists 1:

Checks if a given file exists on the server.

Syntax

METHOD FileExists : BOOL
VAR_INPUT
    fbFtpConnection : REFERENCE TO FB_FtpConnection;
    sFilePath       : STRING;
END_VAR

FileExists 2: 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.

FileExists 3: Inputs

Name

Type

Description

fbFtpConnection

FB_FtpConnection

References the server connection to be used for the operation.

sFilePath

STRING

Path to the file on the server.