RenameFTPFile()

语法

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

参数

#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$.

返回值

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

参阅

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

已支持操作系统

所有

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