GC_Filesystem_ftpsockets::move()

最后更新于:2021-11-27 19:30:35

GC_Filesystem_ftpsockets::move( string$source, string$destination, bool$overwrite=false)

Moves a file.

参数

$source

(string) (Required) Path to the source file.

$destination

(string) (Required) Path to the destination file.

$overwrite

(bool) (Optional) Whether to overwrite the destination file if it exists.

Default value: false

响应

(bool) True on success, false on failure.

源文件

文件: gc-admin/includes/class-gc-filesystem-ftpsockets.php

	public function move( $source, $destination, $overwrite = false ) {
		return $this->ftp->rename( $source, $destination );
	}