getOrCreateFolder
Retrieves the folder for the given path or creates a new one if it does not exist.
Import:
import { getOrCreateFolder } from 'obsidian-dev-utils/obsidian/file-system';Signature:
function getOrCreateFolder(app: App, path: string): Promise<TFolder>Parameters:
| Parameter | Type | Description |
|---|---|---|
app | App | The Obsidian App instance. |
path | string | The path of the folder to retrieve or create. |
Returns: Promise<TFolder> — The folder representing the folder.