Core Function
View Source on Trac ↗ copy_dir()
copy_dir( mixed $from, mixed $to, mixed $skip_list = array() ) Copies a directory from one location to another via the WordPress Filesystem
Parameters 2 required
| Name / Type | Description |
|---|---|
| $from string | Source directory. Required |
| $to string | Destination directory. Required |
| $skip_list string[] | An array of files/folders to skip copying. |
Return Value
((true)
| WP_Error) True on success, WP_Error on failure.
Function Information
Since Version
2.5.0
Source File
wp-admin/includes/file.php
Advertisement