Skip to content

getAttachmentFilePath

Retrieves the file path for an attachment within a note.

Import:

import { getAttachmentFilePath } from '@mnaoumov/obsidian-lib/attachment-path';

Signature:

function getAttachmentFilePath(params: GetAttachmentFilePathParams): Promise<string>

Parameters:

Parameter Type Description
params GetAttachmentFilePathParams Parameters for the get attachment file path function.

Returns: Promise<string> — A Promise that resolves to the file path of the attachment.


Links to this page: