Skip to content

LinkUpdater.renameSubpath method

LinkUpdater › renameSubpath

Unofficial

Rename a subpath reference (e.g. heading or block) within a file.

Signature:

renameSubpath(file: TFile, oldSubpath: string, newSubpath: string): Promise<void>

Parameters:

Parameter Type Description
file TFile File containing the subpath.
oldSubpath string Previous subpath.
newSubpath string New subpath.

Returns: Promise<void>A promise that resolves when the subpath has been renamed.