FileRename

FileRename 1:

Renames a file on the server.

Syntax

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

FileRename 2: Return value

Name

Type

Description

FileRename

BOOL

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

FileRename 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.

sNewName

STRING

New filename.