Skip to content

getAttachmentFilePath

Retrieves the file path for an attachment within a note.

Import:

import { getAttachmentFilePath } from 'obsidian-dev-utils/obsidian/attachment-path';

Signature:

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

Parameters:

ParameterTypeDescription
paramsGetAttachmentFilePathParamsParameters for the get attachment file path function.

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