System.IOUtils.TDirectory.Copy

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class procedure Copy(const SourceDirName, DestDirName: string); static;

C++

static void __fastcall Copy(const System::UnicodeString SourceDirName, const System::UnicodeString DestDirName);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.IOUtils.pas
System.IOUtils.hpp
System.IOUtils TDirectory

Description

Copies a directory and its contents.

Use Copy to copy a directory and its contents from a given path to another path. The following table lists the parameters expected by this method.



Name Meaning

SourceDirName

The path of the source directory that will be copied.

DestDirName

The destination path to which the directory will be copied.



Note: Copy raises an exception if the given paths are invalid, do not exist, or cannot be accessed.

See Also

Code Examples