System.IOUtils.TDirectory.Copy
Delphi
class procedure Copy(const SourceDirName, DestDirName: string); overload; static;
class procedure Copy(const SourceDirName, DestDirName: string; IgnoreErrors: Boolean); overload; static;
C++
static void __fastcall Copy(const System::UnicodeString SourceDirName, const System::UnicodeString DestDirName)/* overload */;
static void __fastcall Copy(const System::UnicodeString SourceDirName, const System::UnicodeString DestDirName, bool IgnoreErrors)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.IOUtils.pas System.IOUtils.hpp |
System.IOUtils | TDirectory |
Description
Copies the contents of the source directory to the destination directory.
Use Copy to copy the 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