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): stringParameters:
| 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.