getAvailablePath
Gets an available path for a file in the vault.
Import:
import { getAvailablePath } from 'obsidian-dev-utils/obsidian/vault';Signature:
function getAvailablePath(app: App, path: string): stringParameters:
| Parameter | Type | Description |
|---|---|---|
app | App | The application instance. |
path | string | The path of the file to get an available path for. |
Returns: string — The available path for the file.