MissingPathTreatment
How getBasename and getExtension should answer for a path that resolves to nothing in the vault.
Nothing in the vault says whether an unresolved alpha.bravo names a dotted folder or a .bravo file, so the caller decides.
Import:
import type { MissingPathTreatment } from 'obsidian-dev-utils/obsidian/file-system';Signature:
export enum MissingPathTreatmentMembers:
| Member | Value | Description |
|---|---|---|
File | 'file' | Read the path as a file path: alpha.bravo is basename alpha plus extension bravo. |
Folder | 'folder' | Read the path as a folder path: alpha.bravo is basename alpha.bravo with no extension. |
Throw | 'throw' | Throw instead of guessing. This is the default. |
Links to this page: