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

or one of its subclasses if receiving an error response

HttpRequestTimeoutException

if the request timed out

on network related issues