Skip to content

getFilePathSafe

Gets a safe file path for a file or folder.

Import:

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

Signature:

function getFilePathSafe(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.