Skip to content

getHomeFolderPath

Gets the user’s home folder. Call it only on desktop, behind Platform.isDesktopApp.

Import:

import { getHomeFolderPath } from '@mnaoumov/obsidian-lib/desktop-home-folder';

Signature:

function getHomeFolderPath(): string

Returns: string — The absolute path of the home folder.