# XFTPF\_RENAME

> [HTML Version](xftpf_rename.htm)

_Added June 2019_

Opcode XFTPF\_RENAME (\&h00800000), in conjunction with XFTPF\_SFTP allows you to rename a remote file or directory. Use the same parameter list as for the other opcodes, except:

_localpath_ should specify the old file or directory name

_hostfile_ should specify the new file or directory name

_hostdir_ should be set to ""

On return the status parameter will be set to 1 on success.

**History**

2019 June, A-Shell 6.5.1662, ASHNET library update 1.13.167:  Opcode added to A-Shell.