IDirectoryInfo.Create

Syntax

Create;

Description

The Create method creates a directory.

Comments

If this folder already exists,  an exception is generated.

Example

Sub Main;

Var

Dir: IDirectoryInfo;

Begin

Dir:=New DirectoryInfo.Attach("c:\New_folder");

If Not Dir.Exists Then

Dir.Create;

End If;

Dispose Dir;

End Sub Main;

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

See also:

IDirectoryInfo