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.
Methods
Section titled “Methods”home()
Section titled “home()”home():
string
Defined in: ideas-io.type.ts:18
The home folder, for a dir that starts with ~.
Returns
Section titled “Returns”string
read()
Section titled “read()”read(
path):string|undefined
Defined in: ideas-io.type.ts:14
A file’s text, or undefined when it cannot be read.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string | undefined
readDir()
Section titled “readDir()”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.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”IdeasDirEntry[] | undefined
write()
Section titled “write()”write(
path,text):void
Defined in: ideas-io.type.ts:16
Replaces a file’s text. Throws when the file cannot be written.
Parameters
Section titled “Parameters”string
string
Returns
Section titled “Returns”void