RenameFTPFile()

Syntax

Result = RenameFTPFile(#Ftp, Filename$, NewFilename$)
Description
Renames a file on the FTP server.

Parameters

#Ftp The connection to use.
Filename$ The name of the file on the server to be renamed. The renamed file has to be in the current directory (see GetFTPDirectory() and SetFTPDirectory()). It is not possible to specify a subpath in the Filename$.
NewFilename$ The new name for the file on the server. The renamed file has to be in the current directory (see GetFTPDirectory() and SetFTPDirectory()). It is not possible to specify a subpath in the NewFilename$.

Return value

Returns nonzero if the file was renamed successfully and zero otherwise.

See Also

SendFTPFile(), SetFTPDirectory(), GetFTPDirectory(),

Supported OS

All

<- ReceiveFTPFile() - Ftp Index - SendFTPFile() ->