{
DirectoryExists, CreateDir, Create example
The following example creates a directory ‘C:\temp’ if it does not already exist.
} 
uses FileCtrl;
procedure TForm1.Button1Click(Sender: TObject);
begin
  if not DirectoryExists('c:\temp') then
    if not CreateDir('C:\temp') then
      raise Exception.Create('Cannot create c:\temp');
end; 
