Renames a file on the server
o.FTPRenameFile(lcOldName, lcNewName)
Return Value
0 or error code.
Parameters
lcOldName
Original filename on the server.
lcNewName
New filename on the server.
Example
oFTP = CREATE("wwFTP") oFTP.FTPConnect("ftp.west-wind.com","jdoe","hispassword") IF oFTP.FTPRenameFile("/uploads/marcelo.dbf","/uploads/marcelonew.txt") # 0 ? oFTP.cErrorMsg RETURN ENDIF ? "File renamed..." oFTP.FTPClose()
See also:
Class wwFtp (deprecated)© West Wind Technologies, 1996-2024 • Updated: 09/06/11
Comment or report problem with topic