copy

open fun copy(toFolder: RemoteFolder): RemoteFolder

Copy this file to a specified folder.

Return

the copied file.

See also

Parameters

toFolder

The RemoteFolder where the file will be copied. Must not be null.

Throws

on a null toFolder argument.

on a network or API error.


open fun copy(toFolder: RemoteFolder, overwrite: Boolean): RemoteFolder

Copy this file to a specified folder.

The behavior of the overwriteFiles parameter depends on the type of the file being passed. For files, see the description here, otherwise see here.

Return

the copied file.

See also

Parameters

toFolder

The RemoteFolder where the file will be copied. Must not be null.

overwrite

If set to true, a file with the same name in the destination folder will be overwritten

Throws

on a null toFolder argument.

on a network or API error.