rename

abstract fun rename(file: RemoteEntry, newFilename: String): Call<out RemoteEntry>

Rename a specified file or folder.

The call will rename the file or folder specified by the file argument to specified newFilename.

Return

Call resulting in the renamed file's metadata.

See also

Parameters

file

The RemoteEntry to be renamed. Must not be null.

newFilename

The new name. Must not be null.

Throws

on a null newFilename argument.


abstract fun rename(id: String, newFilename: String): Call<out RemoteEntry>

Rename a specified file or folder.

The call will rename the file or folder specified by the file argument to specified newFilename.

Return

Call resulting in the renamed file's metadata.

See also

Parameters

id

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

newFilename

The new name. Must not be null.

Throws

on a null newFilename argument.