App.importAttachments method
App › importAttachments
Unofficial
Import attachments into specified folder.Signature:
importAttachments(attachmentsToImport: ImportedAttachment[], folder: TFolder | null): Promise<TFile[]>Parameters:
| Parameter | Type | Description |
|---|---|---|
| attachmentsToImport | ImportedAttachment[] | The attachments to import. |
| folder | TFolder | null | The folder to import the attachments to. |
Returns: Promise<TFile[]> — A promise that resolves to the imported files. A folder contributes every file inside it.