IDirectoryInfo.CreateSubdirectory

Syntax

CreateSubdirectory(Path: String): IDirectoryInfo;

Parameters

Path - a path that includes the name of a subdirectory that should be created.

Description

The CreateSubdirectory method creates a subdirectory.

Example

Sub Main;

Var

Dir: IDirectoryInfo;

Begin

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

If Dir.Exists Then

Dir.CreateSubdirectory("Folder_1");

End If;

Dispose Dir;

End Sub Main;

After executing this example, a subdirectory Folder_1 is created in a directory New_folder.

See also:

IDirectoryInfo