rename
abstract fun rename(oldUri: Uri, newUri: Uri, options: FileSystemProvider.RenameOptions): PromiseLike<Void?>?(source)
Rename a file or folder.
Parameters
oldUri
The existing file.
newUri
The new location.
options
Defines if existing files should be overwritten.
Throws
{@linkcode FileSystemError.NoPermissions NoPermissions} when permissions aren't sufficient.