DirRename

DirRename 1:

Renames an existing directory on the server.

Syntax

METHOD DirRename : BOOL
VAR_INPUT
    fbFtpConnection : REFERENCE TO FB_FtpConnection;
    sDirectory      : STRING;
    sNewName        : STRING;
END_VAR

DirRename 2: Return value

Name

Type

Description

DirRename

BOOL

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

DirRename 3: Inputs

Name

Type

Description

fbFtpConnection

FB_FtpConnection

References the server connection to be used for the operation.

sDirectory

STRING

Path to the directory to be renamed.

sNewName

STRING

New directory name.