Skip to content

getParentPath

The parent folder of a vault path.

Import:

import { getParentPath } from '@mnaoumov/obsidian-lib/broken-link-candidates';

Signature:

function getParentPath(path: string): string

Parameters:

Parameter Type Description
path string The path.

Returns: string — The parent folder; '' for the vault root.