Retrieves the root folder of the project.
Import:
import { getRootFolder } from 'obsidian-dev-utils/script-utils/root';
Signature:
function getRootFolder(cwd: string | undefined): string | null
Parameters:
| Parameter | Type | Description |
|---|
cwd | string | undefined | The current working folder to resolve from. |
Returns: string | null — The path to the root folder.