cMascaraRemote mask.
AdvPL GuideFTPDirectory(cMascara, [cAtributo]) --> aRetLists files or directories in an FTP session.
The historical manual associates D with directories and omission with files. An old official example describes D more broadly; a later TOTVS fix specifies directory-only filtering. Check the LIB and do not infer the complete array layout from one used position. 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–3.)
FTPDirectory(cMascara, [cAtributo]) --> aRetcMascaraRemote mask.
cAtributoD for directories according to manual/fix; check LIB.
Listing array.
#Include "Protheus.ch"
User Function Ed399()
Local bAction := {|cMask| FTPDirectory(cMask)}
// 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.