Skip to content

getPath

Returns the path of the given pathOrFile.

Import:

import { getPath } from '@mnaoumov/obsidian-lib/file-system';

Signature:

function getPath(app: App, pathOrFile: PathOrAbstractFile): string

Parameters:

Parameter Type Description
app App The Obsidian App instance.
pathOrFile PathOrAbstractFile The path or abstract file.

Returns: string — The path of the pathOrFile.