Skip to content

IdeasIo

Defined in: ideas-io.type.ts:10

What the Obsidian provider reads and writes on disk, so a test can supply it without a disk.

home(): string

Defined in: ideas-io.type.ts:18

The home folder, for a dir that starts with ~.

string


read(path): string | undefined

Defined in: ideas-io.type.ts:14

A file’s text, or undefined when it cannot be read.

string

string | undefined


readDir(path): IdeasDirEntry[] | undefined

Defined in: ideas-io.type.ts:12

The entries of a folder, or undefined when it does not exist or cannot be read.

string

IdeasDirEntry[] | undefined


write(path, text): void

Defined in: ideas-io.type.ts:16

Replaces a file’s text. Throws when the file cannot be written.

string

string

void