cDirValidated test path.
AdvPL GuideFWMakeDir(cDir, [lShowMsg]) --> lRetCreates directories and intermediate levels.
Creates a path with subdirectories and logical success. lShowMsg controls failure messages and must suit interface or JOB execution. Paths belong to execution context; a workstation drive is not automatically a server directory. The example prepares a block without creating folders. (Sources: refs. 1–1.)
FWMakeDir(cDir, [lShowMsg]) --> lRetcDirValidated test path.
lShowMsgShows a failure message.
Logical success.
#Include "Protheus.ch"
User Function Ed436()
Local bAction := {|cPath| FWMakeDir(cPath,.F.)}
// Do not evaluate: check path and ownership first.
Return NilPrepared callback; filesystem unchanged. 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.