rename

abstract fun rename(source: Uri, target: Uri, options: FileSystem.RenameOptions = definedExternally): PromiseLike<Void?>(source)

Rename a file or folder.

Parameters

source

The existing file.

target

The new location.

options

Defines if existing files should be overwritten.

Online Documentation