moveFile

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

Move a specified file.

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

For more information, see the related documentation page.

Return

Call resulting in the metadata of the moved file

Parameters

fileId

The file id of the file to be moved.

toFolderId

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


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

Move a specified file.

Same as calling moveFile (long, long)}

For more information, see the related documentation page.

Return

Call resulting in the metadata of the moved file

See also

Parameters

file

The RemoteFile to be moved. Must not be null.

toFolder

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

Throws

on a null toFolder argument.


abstract fun moveFile(path: String, toPath: String): Call<RemoteFile>

Move a specified file.

The call will move the file specified by the path argument to the folder specified by the toPath.

For more information, see the related documentation page.

Return

Call resulting in the metadata of the moved file

Parameters

path

The path of the file to be moved.

toPath

The path of the folder where the file will be moved.

Throws

on a null or empty toPath argument.