Skip to content

getFolderPathSafe

Gets a safe folder path for a file or folder.

Import:

import { getFolderPathSafe } from 'obsidian-dev-utils/obsidian/vault';

Signature:

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

Parameters:

ParameterTypeDescription
appAppThe application instance.
pathstringThe path of the file or folder to get a safe path for.

Returns: string — The safe path for the file or folder.