Skip to content

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:

ParameterTypeDescription
oldPathOrFilePathOrAbstractFileThe resource to rename.
newPathstringThe desired new path (an available path is chosen if it is taken).

Returns: Promise<string>A Promise resolving to the actual new path.