Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

FWMakeDir

FWMakeDir(cDir, [lShowMsg]) --> lRet

Creates directories and intermediate levels.

FWMakeDirAdvPL
01 · OVERVIEW

Overview

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.)

02 · SYNTAX

Syntax

FWMakeDir(cDir, [lShowMsg]) --> lRet

Parameters

cDir
CharacterRequired

Validated test path.

lShowMsg
LogicalOptional

Shows a failure message.

Return value

Logical success.

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed436()
    Local bAction := {|cPath| FWMakeDir(cPath,.F.)}
    // Do not evaluate: check path and ownership first.
Return Nil
Expected result

Prepared callback; filesystem unchanged. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Check context and return before integration; the example does not replace a complete routine.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. TOTVS. FWMakeDir. TDN. Accessed on 2026-10-27.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha