copy

abstract fun copy(file: RemoteEntry, toFolder: RemoteFolder): Call<out RemoteEntry>

Copy a specified file or folder.

The call will copy the file or folder specified by the file argument to specified toFolder.

Return

Call resulting in the metadata of the copied file or folder.

See also

Parameters

file

The RemoteEntry to be copied. Must not be null.

toFolder

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

Throws

on a null toFolder argument.


abstract fun copy(file: RemoteEntry, toFolder: RemoteFolder, overwriteFiles: Boolean): Call<out RemoteEntry>

Copy a specified file or folder.

The call will copy the file or folder specified by the file argument to specified toFolder.

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

Call resulting in the metadata of the copied file or folder.

See also

Parameters

file

The RemoteEntry to be copied. Must not be null.

toFolder

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

overwriteFiles

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.


abstract fun copy(id: String, toFolderId: Long): Call<out RemoteEntry>

Copy a specified file or folder.

The call will copy the file or folder specified by the id argument to the specified folder withtoFolderId.

The behavior of the overwriteFiles parameter depends on the type of the file specified by id. For files, see the description for copyFile, otherwise see copyFolder

Return

Call resulting in the metadata of the copied file or folder.

See also

Parameters

id

The id of the file or folder to be copied. Must not be null.

toFolderId

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

Throws


abstract fun copy(id: String, toFolderId: Long, overwriteFiles: Boolean): Call<out RemoteEntry>

Copy a specified file or folder.

The call will copy the file or folder specified by the id argument to the specified folder withtoFolderId.

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

Call resulting in the metadata of the copied file or folder.

See also

Parameters

id

The id of the file or folder to be copied. Must not be null.

toFolderId

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

overwriteFiles

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

Throws