FileTransfer
in
Defines file uploads and remote renaming without depending on a transport library.
Tags
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
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.