Skip to content

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): string

Parameters:

ParameterTypeDescription
appAppThe application instance.
pathstringThe path of the file to get an available path for.

Returns: string — The available path for the file.