Xbasic
DIR_CREATE_RECURSE Function
Syntax
Success_Flag as L = dir_create_recurse(C folder )
Arguments
- folder
The name and path of a folder. Character
Description
DIR_CREATE_RECURSE() creates a folder, creating as many subfolders as Necessary. The function returns True (.T.) if it created the folder or if the folder already existed. The function returns False (.F.) if it was unable to create the folder. In the example below, the function was unable to create the "x:\databases" folder, because the "x" drive did not exist.
Example
dir_create_recurse("c:\databases") -> .T. dir_create_recurse("x:\databases") -> .F.
See Also