copy

abstract suspend fun copy(from: String, to: String, destinationBucket: String? = null)(source)

Copies a file under from to to

Parameters

from

The path to copy from

to

The path to copy to

destinationBucket

The destination bucket to copy to. If null, the current bucket is used

Throws

containing an error code, if receiving an error response

HttpRequestTimeoutException

if the request timed out

HttpRequestException

on network related issues