cDiretorioAllowed remote directory.
AdvPL GuideFTPDirChange(cDiretorio) --> lRetChanges the current remote directory.
The path belongs to the remote session rather than the AppServer disk. The official example checks success before listing. Failed changes must stop dependent operations rather than deleting or downloading in the previous directory. 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.)
FTPDirChange(cDiretorio) --> lRetcDiretorioAllowed remote directory.
Logical operation success.
#Include "Protheus.ch"
User Function Ed398()
Local bAction := {|cRemote| FTPDirChange(cRemote)}
// 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.