App.importDirectory method
App › importDirectory
Unofficial
Import a directory from the file system into the vault (desktop only).Signature:
importDirectory(directory: unknown, name: string, parent?: TFolder | undefined): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
| directory | unknown | The source directory to import. |
| name | string | The name of the destination folder to create in the vault. |
| parent? | TFolder | undefined | The parent folder to import into. Defaults to the vault root. |
Returns: Promise<void> — A promise that resolves when the import completes.