Dir::copy()
Copy the directory to a new destination
Dir::copy(string $dir, string $target, bool $recursive = true, array|false $ignore = [ ]): bool
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $dirrequired | string |
no default value | |
| $targetrequired | string |
no default value | |
| $recursive | bool |
true
|
|
| $ignore | arrayorfalse |
[ ]
|
List of full paths to skip during copying or false to copy all files, includingthose listed in Dir::$ignore |
Return type
bool