Skip to content

MisplacedAttachmentIndex.isProperNote method

MisplacedAttachmentIndex › isProperNote

Whether a note is a proper note of an attachment: it references it, and its own folder holds it.

Signature:

isProperNote(attachmentPath: string, notePath: string): boolean

Parameters:

ParameterTypeDescription
attachmentPathstringThe attachment's vault-relative path.
notePathstringThe note's vault-relative path.

Returns: boolean — true when the note's own attachment folder holds the attachment.