copy_dir( string $from, string $to, string[] $skip_list = array() )
Copies a directory from one location to another via the WordPress Filesystem Abstraction.
Description
Assumes that WP_Filesystem() has already been called and setup.
Parameters
- $from
-
(Required) Source directory.
- $to
-
(Required) Destination directory.
- $skip_list
-
(Optional) An array of files/folders to skip copying.
Default value: array()
Return
Source
File: wp-admin/includes/file.php
Changelog
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |