Skip to content

getPath

Returns the path of the given pathOrFile.

Import:

import { getPath } from 'obsidian-dev-utils/obsidian/file-system';

Signature:

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

Parameters:

ParameterTypeDescription
appAppThe Obsidian App instance.
pathOrFilePathOrAbstractFileThe path or abstract file.

Returns: string — The path of the pathOrFile.