IDirectoryInfo.Create

Syntax

Create;

Description

The Create method creates a folder.

Comments

If the folder already exists, an exception is thrown.

Example

Sub UserProc;
Var
    Dir: IDirectoryInfo;
Begin
    Dir:=New DirectoryInfo.Attach("c:\New_folder");
    If Not Dir.Exists Then
        Dir.Create;
    End If;
    Dispose Dir;
End Sub UserProc;

After executing the example, the New_folder directory is created if it does not exist.

See also:

IDirectoryInfo