WordPress at Your Fingertips
function is not described

WP_Filesystem_Base::copy() public WP 2.5.0

Copies a file.

{} It's a method of the class: WP_Filesystem_Base{}

No Hooks.

Return

true|false. True on success, false on failure.

Usage

$WP_Filesystem_Base = new WP_Filesystem_Base();
$WP_Filesystem_Base->copy( $source, $destination, $overwrite, $mode );
$source(string) (required)
Path to the source file.
$destination(string) (required)
Path to the destination file.
$overwrite(true|false)
Whether to overwrite the destination file if it exists.
Default: false
$mode(int|false)
The permissions as octal number, usually 0644 for files,
0755 for dirs.
Default: false

Changelog

Since 2.5.0 Introduced.

Code of WP_Filesystem_Base::copy() WP 5.8.2

public function copy( $source, $destination, $overwrite = false, $mode = false ) {
	return false;
}