首页 WordPress函数大全 copy_dir()

copy_dir()

2020-05-01 / 4059阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

copy_dir( string $from, string $to, string[] $skip_list = array() )

Copies a directory from>

Contents

  • Description
    • Parameters
    • Return
    • Source
    • Changelog
  • Related
    • Uses
    • Used By
  • User Contributed Notes

描述

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

参数

$from

(string)
(Required)
Source directory.

$to

(string)
(Required)
Destination directory.

$skip_list

(string[])
(Optional)
An array of files/folders to skip copying.

Default value: array()

返回

(true|WP_Error) True>WP_Error on failure.

大家谈论
    我的见解