Vault.getAvailablePathForAttachments method
Vault › getAvailablePathForAttachments
Unofficial
Get path for attachment that does not conflict with other existing filesSignature:
getAvailablePathForAttachments(filename: string, extension: string, file: TFile | null): Promise<string>Parameters:
| Parameter | Type | Description |
|---|---|---|
| filename | string | The desired filename. |
| extension | string | The file extension. |
| file | TFile | null | The file associated with the attachment, or null. |
Returns: Promise<string> — An available path for the attachment.