renameFile
abstract fun renameFile(fileId: Long, newFilename: String): Call<RemoteFile>
Content copied to clipboard
Rename a specified file.
For more information, see the related documentation page.
Refer to the file names documentation page for any rules &restrictions.
Return
Call resulting in the renamed file's metadata.
Parameters
fileId
The id of the folder you would like to rename
newFilename
The new folder name. Must not be null.
Throws
on a null newFilename
argument.
abstract fun renameFile(file: RemoteFile, newFilename: String): Call<RemoteFile>
Content copied to clipboard
Rename a specified file.
Same as calling renameFile
For more information, see the related documentation page.
Refer to the file names documentation page for any rules &restrictions.
Return
Call resulting in the renamed file's metadata.
See also
Parameters
file
The RemoteFile to be renamed. Must not be null.
newFilename
The new folder name. Must not be null.
Throws
on a null newFilename
argument.