Documentation Build v9.18

FileTransfer

Defines file uploads and remote renaming without depending on a transport library.

Tags
author

Alejandro Sosa soal@verua.swiss

Table of Contents

Methods

rename()  : void
Renames a file on the remote server.
uploadFile()  : void
Uploads a local file to the given remote path.

Methods

rename()

Renames a file on the remote server.

public rename(string $source, string $destination) : void
Parameters
$source : string

Current remote path.

$destination : string

New remote path.

Tags
throws
FileTransferException

uploadFile()

Uploads a local file to the given remote path.

public uploadFile(string $localPath, string $remotePath) : void
Parameters
$localPath : string

Path to the local file.

$remotePath : string

Destination path on the remote server.

Tags
throws
FileTransferException
On this page

Search results