copy_dir


copy_dir ( $from, $to, $skip_list = array() )

Parameters:
  • (string) $from Source directory.
  • (string) $to Destination directory.
  • (array) $skip_list A list of files/folders to skip copying.
Returns:
  • (true|WP_Error) True on success, WP_Error on failure.
Defined at:

Description

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

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

Related Functions

_copy_dir, wp_editor, wp_die, wp_mkdir_p, wp_redirect

Top Google Results

User discussions

wpseek mobile