copyFolder

abstract fun copyFolder(folderId: Long, toFolderId: Long): Call<RemoteFolder>

Copy specified folder.

For more information, see the related documentation page.

Return

Call resulting in the copied folder's metadata.

Parameters

folderId

The id of the folder you would like to copy

toFolderId

The id of the destination folder


abstract fun copyFolder(folder: RemoteFolder, toFolder: RemoteFolder): Call<RemoteFolder>

Copy specified folder.

Return

Call resulting in the copied folder's metadata.

See also

#copyFolder(long, long)

Parameters

folder

The RemoteFolder you would like to copy. Must not be null.

toFolder

The destination RemoteFolder. Must not be null.

Throws

on a null toFolder argument.


abstract fun copyFolder(folderId: Long, toFolderId: Long, overwrite: Boolean): Call<RemoteFolder>

Copy specified folder.

For more information, see the related documentation page.

Return

Call resulting in the copied folder's metadata.

Parameters

folderId

The id of the folder you would like to copy

toFolderId

The id of the destination folder

overwrite

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


abstract fun copyFolder(folder: RemoteFolder, toFolder: RemoteFolder, overwrite: Boolean): Call<RemoteFolder>

Copy specified folder.

Return

Call resulting in the copied folder's metadata.

See also

#copyFolder(long, long)

Parameters

folder

The RemoteFolder you would like to copy. Must not be null.

toFolder

The destination RemoteFolder. Must not be null.

overwrite

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

Throws

on a null toFolder argument.