Skip to content

getAvailablePath

Gets an available path for a file in the vault.

Import:

import { getAvailablePath } from '@mnaoumov/obsidian-lib/vault';

Signature:

function getAvailablePath(app: App, path: string): string

Parameters:

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.