Rename the file informed in the src attribute, to the name specified in the dst attribute.

1 ftp.rename



attribute 'src' required

The name of the file to be renamed has not been specified.

attribute 'dst' required

The new file name has not been indicated.

There is not file whose name matches the one specified in the src attribute.


Change the name of the file.

<xsql-script name='ftp_rename_sample1'>
        <ftp host='' user='ftpuser' password='ftpdeister'>
            <println><ftp.nlst /></println>
            <println><ftp.rename src='camaras' dst='videos' /></println>
            <println><ftp.nlst /></println>

The file named 'cameras' is renamed to 'videos'.