| [Overview][Constants][Types][Procedures and functions][Variables][Index] |
Creates the specified directory if it does not already exist
Source position: lazfileutils.pas line 47
function ForceDirectory( |
DirectoryName: string |
):Boolean; |
DirectoryName |
|
Path information for the operation |
Returns True if directory exists or if it was successfully created
ForceDirectory is a Boolean function which creates the specified directory if it does not already exist. ForceDirectory ensures that a trailing path delimiter exists in DirectoryName prior to checking the file system. Each directory in the specified path is examined in the function using DirPathExists. ForceDirectory calls CreateDirUTF8 if a directory does not exist, and may exit with a return value of False if directory creation is not successful.
The return value is True if all directories in the path information already exist, or are successfully created in the function.
|
Creates the specified directories if they do not already exist |
| lazarus-ccr.sourceforge.net |