IDirectoryInfo.CreateSubdirectory

Syntax

CreateSubdirectory(Path: String): IDirectoryInfo;

Parameters

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

Description

The CreateSubdirectory method creates a subdirectory.

Example

Sub UserProc;
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 UserProc;

After executing the example, the Folder_1 subdirectory is created in the New_folder folder.

See also:

IDirectoryInfo