copyFile

abstract fun copyFile(fileId: Long, toFolderId: Long): Call<RemoteFile>

Copy a specified file.

Same as calling copyFile with overwrite set to false.

Return

Call resulting in the metadata of the copied file

Parameters

fileId

The file id of the file to be copied.

toFolderId

The folder id of the folder where the file will be copied.


abstract fun copyFile(fileId: Long, toFolderId: Long, overwrite: Boolean): Call<RemoteFile>

Copy a specified file.

The call will copy the file specified by the fileId argument to the folder specified by the toFolderId argument.

For more information, see the related documentation page.

Return

Call resulting in the metadata of the copied file

Parameters

fileId

The file id of the file to be copied.

toFolderId

The folder id of the folder where the file will be copied.

overwrite

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


abstract fun copyFile(file: RemoteFile, toFolder: RemoteFolder): Call<RemoteFile>

Copy a specified file.

Same as calling copyFile with overwrite set to false.

For more information, see the related documentation page.

Return

Call resulting in the metadata of the copied file

See also

Parameters

file

The RemoteFile 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 copyFile(file: RemoteFile, toFolder: RemoteFolder, overwrite: Boolean): Call<RemoteFile>

Copy a specified file.

Same as calling copyFile

For more information, see the related documentation page.

Return

Call resulting in the metadata of the copied file

See also

Parameters

file

The RemoteFile to be copied. Must not be null.

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.