WordPress at Your Fingertips
function is not described

WP_Filesystem_FTPext::move() public WP 2.5.0

Moves a file.

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

No Hooks.


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


$WP_Filesystem_FTPext = new WP_Filesystem_FTPext();
$WP_Filesystem_FTPext->move( $source, $destination, $overwrite );
$source(string) (required)
Path to the source file.
$destination(string) (required)
Path to the destination file.
Whether to overwrite the destination file if it exists.
Default: false


Since 2.5.0 Introduced.

Code of WP_Filesystem_FTPext::move() WP 5.8.2

public function move( $source, $destination, $overwrite = false ) {
	return ftp_rename( $this->link, $source, $destination );