Skip to content

App.importAttachments method

App › importAttachments

Unofficial

Import attachments into specified folder.

Signature:

importAttachments(attachmentsToImport: ImportedAttachment[], folder: TFolder | null): Promise<TFile[]>

Parameters:

ParameterTypeDescription
attachmentsToImportImportedAttachment[]The attachments to import.
folderTFolder | nullThe folder to import the attachments to.

Returns: Promise<TFile[]> — A promise that resolves to the imported files. A folder contributes every file inside it.