GC_Filesystem_FTPext::move()
最后更新于:2021-11-27 18:47:59
GC_Filesystem_FTPext::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-ftpext.php
public function move( $source, $destination, $overwrite = false ) {
return ftp_rename( $this->link, $source, $destination );
}