ibec_ForceDirectories
Creates all the directories along a directory path if they do not already exist.
Syntax
function ibec_ForceDirectories(Dir: string): Boolean;
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.
Examples
- IBExpert file system inventory tips and tricks
- Performing a daily backup of the IBExpert User Database
- IMAP example
- Working with POP3 servers
back to top of page
<< ibec_ExtractFileName | IBEBlock | ibec_FileAttr >>