RenameDeleteHandlerSettings.getRescuePath method
RenameDeleteHandlerSettings › getRescuePath
Where to move an attachment that a deletion would otherwise strand — one that survives because another note still references it, but is left sitting in a folder whose owning note is gone.Deciding the destination is the plugin's attachment-path policy, which is why the handler asks rather than guesses. Returning
null — or not implementing this at all — keeps the attachment where it is, which is the behavior every consumer had before this member existed.Signature:
getRescuePath(params: GetRescuePathParams): Promise<null | string>Parameters:
| Parameter | Type | Description |
|---|---|---|
| params | GetRescuePathParams |