Skip to content

GetAvailablePathForAttachmentsFunctionExtended

Vault.getAvailablePathForAttachments extended wrapper.

Import:

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

Signature:

export interface GetAvailablePathForAttachmentsFunctionExtended extends GetAvailablePathForAttachmentsFunction

Extends: GetAvailablePathForAttachmentsFunction

Methods

MethodReturnsDescription
checkIsAttachmentUnitFolder(this, folderPath)booleanWhether a folder path is designated as an attachment unit — a folder that must travel whole rather than have the linked file relocated out of it.

Optional: an attachment-location plugin may own the resolution without designating anything, and an absent member is the same "nobody owns this policy" answer GetAvailablePathForAttachmentsFunctionExtended.extended itself gives.
extended(params)Promise<string>Get available path for attachments with additional params.