FileMove

FileMove 1:

Moves a file on the server.

Syntax

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

FileMove 2: Return value

Name

Type

Description

FileMove

BOOL

Returns TRUE when the method has completed. Whether the action was successful can be read from the bError variable of the function block.

FileMove 3: Inputs

Name

Type

Description

fbFtpConnection

FB_FtpConnection

References the server connection to be used for the operation.

sFilePath

STRING

Path to the source file on the server.

sTargetDirectory

STRING

Path to the target directory to which the file is to be moved.