cArqAtualCurrent remote name.
AdvPL GuideFTPRenameFile(cArqAtual, cArqNovo) --> lRetRenames a remote file.
The manual places this operation in the current remote directory and describes a logical result. It establishes no safe-overwrite, cross-volume or atomic-publication guarantee. Validate the target name under integration rules separately from connection success. The example prepares an uninvoked callback. The caller must own the test FTP session and its paths; no server or credentials are embedded. (Sources: refs. 1–2.)
FTPRenameFile(cArqAtual, cArqNovo) --> lRetcArqAtualCurrent remote name.
cArqNovoAllowed new name.
Logical operation success.
#Include "Protheus.ch"
User Function Ed404()
Local bAction := {|cOld,cNew| FTPRenameFile(cOld,cNew)}
// Do not evaluate: caller must prepare session and paths.
Return NilPrepared block; no FTP operation performed. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
© 2026 Usina.BR. All rights reserved. TOTVS, Protheus, Microsiga and their respective logos are trademarks of their owners. AdvPL Guide is independent and uses limited, attributed excerpts justified by educational purposes. See the Terms of Use. Terms of Use
Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.