GetAttachmentFilePathParams
Options for the getAttachmentFilePath function.
Import:
import type { GetAttachmentFilePathParams } from '@mnaoumov/obsidian-lib/attachment-path';Signature:
export interface GetAttachmentFilePathParamsProperties
| Property | Type | Description |
|---|---|---|
| app | App | An Obsidian application instance. |
| context | AttachmentPathContext | A context. |
| notePathOrFile | PathOrFile | A path of the note. |
| oldAttachmentPathOrFile | PathOrFile | A path of the attachment. |
| oldNotePathOrFile? | PathOrFile | undefined | A path of the old note. |
| shouldSkipDuplicateCheck | boolean | Should the duplicate check be skipped. |
| shouldSkipGeneratedAttachmentFileName? | boolean | undefined | Should the generated attachment file name be skipped, keeping the attachment's own name. Only Custom Attachment Location's resolver generates a name, so only it reads this flag. A caller that keeps just the folder of the answer should set it: the folder does not depend on the generated name, and generating one can walk every link of the note. |
Links to this page: