Skip to content

IsTreatedAsAttachmentParams

Parameters for isTreatedAsAttachment.

Import:

import type { IsTreatedAsAttachmentParams } from 'obsidian-dev-utils/obsidian/file-system';

Signature:

export interface IsTreatedAsAttachmentParams

Properties

PropertyTypeDescription
attachmentExtensionsreadonly string[]The extensions that mark a file as an attachment, e.g. ['.excalidraw.md']. Each entry is normalized before matching: surrounding whitespace is trimmed, a single leading dot is enforced, and the comparison is case-insensitive. Empty entries are ignored.
pathOrFilenull | PathOrAbstractFileThe path or file to classify.

Links to this page: