meta data for this page
ibec_ForceDirectories
Creates all the directories along a directory path if they do not already exist.
Description
DOS and Windows only allow directories to be created one at a time. For example, to create the C:\APPS\SALES\LOCAL directory, the APPS and SALES directories must exist before the LOCAL directory can be created. Use ibec_ForceDirectories to create a directory and all parent directories that do not already exist.
ibec_ForceDirectories returns True if it successfully creates all necessary directories, False if it could not create a required directory.
Note: Do not call ibec_ForceDirectories with an empty string. Doing so causes ibec_ForceDirectories to raise an exception.
This function supports Unicode (UTF8) file names. You can still use ANSI names, necessary checks and conversion are performed automatically.
Syntax
function ibec_ForceDirectories(Dir: string): Boolean;