_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
See:
Returns:
  • (mixed) WP_Error on failure, True on success.
Defined at:
Change Log:
  • 3: .

Description

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

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

This is a temporary function for the 3.1 -> 3.2 upgrade, as well as for those upgrading to 3.7+

Related Functions

copy_dir, get_temp_dir, wp_editor, _copy_image_file, wp_crop_image

Top Google Results

User discussions

wpseek mobile