Skip to content

getFolderPathSafe

Gets a safe folder path for a file or folder.

Import:

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

Signature:

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

Parameters:

Parameter Type Description
app App The application instance.
path string The path of the file or folder to get a safe path for.

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