getFolderOrNull
Retrieves a folder or null based on the provided path or folder.
Import:
import { getFolderOrNull } from '@mnaoumov/obsidian-lib/file-system';Signature:
function getFolderOrNull(params: GetFolderOrNullParams): TFolder | nullParameters:
| Parameter | Type | Description |
|---|---|---|
params |
GetFolderOrNullParams | The parameters for the retrieval. |
Returns: TFolder | null — The folder if found, otherwise null.
Links to this page: