wpseek.com
A WordPress-centric search engine for devs and theme authors



copy_dir › WordPress Function

Since2.5.0
Deprecatedn/a
copy_dir ( $from, $to, $skip_list = array() )
Parameters: (3)
  • (string) $from Source directory.
    Required: Yes
  • (string) $to Destination directory.
    Required: Yes
  • (string[]) $skip_list An array of files/folders to skip copying.
    Required: No
    Default: array()
Returns:
  • (true|WP_Error) True on success, WP_Error on failure.
Defined at:
Codex:

Copies a directory from one location to another via the WordPress Filesystem Abstraction.

Assumes that WP_Filesystem() has already been called and setup.


Source

Soon...