IDirectory.Copy

Syntax

Copy(Source: String; Destination: String);

Parameters

Source - directory that must be copied.

Destination - directory, into which copying is executed.

Description

The Copy method copies the Source directory with all its contents into the Destination directory.

Example

Sub UserProc(Source: String; Destination: String);
Begin
    If Directory.Exists(Source) And Directory.Exists(Destination) Then
        Directory.Copy(Source, Destination);
    End If;
End Sub UserProc;

While executing the example the Source directory is copied into the Destination directory with all its contents if directories passed by the Source and Destination parameters exist in the file system.

See also:

IDirectory