getPath
Returns the path of the given pathOrFile.
Import:
import { getPath } from '@mnaoumov/obsidian-lib/file-system';Signature:
function getPath(app: App, pathOrFile: PathOrAbstractFile): stringParameters:
| Parameter | Type | Description |
|---|---|---|
app |
App | The Obsidian App instance. |
pathOrFile |
PathOrAbstractFile | The path or abstract file. |
Returns: string — The path of the pathOrFile.