VaultTransaction.rename method
VaultTransaction › rename
Renames or moves a resource, recording the reverse rename as the inverse.Signature:
rename(oldPathOrFile: PathOrAbstractFile, newPath: string): Promise<string>Parameters:
| Parameter | Type | Description |
|---|---|---|
| oldPathOrFile | PathOrAbstractFile | The resource to rename. |
| newPath | string | The desired new path (an available path is chosen if it is taken). |
Returns: Promise<string> — A Promise resolving to the actual new path.