Skip to content

DataAdapter

API reference uses a reviewed source snapshot. Source links open the published source; unverified line locations are omitted.

Defined in: storage/fs.ts:210

append(normalizedPath, data, options?): Promise<void>

Defined in: storage/fs.ts:226

string

string

Partial<FileProperties>

Promise<void>


appendBinary(normalizedPath, data, options?): Promise<void>

Defined in: storage/fs.ts:231

string

ArrayBuffer

Partial<FileProperties>

Promise<void>


copy(normalizedPath, normalizedNewPath): Promise<void>

Defined in: storage/fs.ts:261

string

string

Promise<void>


exists(normalizedPath, sensitive?): Promise<boolean>

Defined in: storage/fs.ts:212

string

boolean

Promise<boolean>


getName(): string

Defined in: storage/fs.ts:211

string


getResourcePath(normalizedPath): string

Defined in: storage/fs.ts:262

string

string


list(normalizedPath): Promise<ListedFiles>

Defined in: storage/fs.ts:253

string

Promise<ListedFiles>


mkdir(normalizedPath, options?): Promise<void>

Defined in: storage/fs.ts:254

string

Partial<{ mode: string; recursive: boolean; }>

Promise<void>


process(normalizedPath, fn, options?): Promise<string>

Defined in: storage/fs.ts:248

Atomically read, modify, and save the contents of a plaintext file.

string

Path to file/folder, use normalizePath to normalize beforehand.

(data) => string

A callback function which returns the new content of the file synchronously.

Partial<FileProperties>

Write options.

Promise<string>

String - the text value of the file that was written.


read(normalizedPath): Promise<string>

Defined in: storage/fs.ts:214

string

Promise<string>


readBinary(normalizedPath): Promise<ArrayBuffer>

Defined in: storage/fs.ts:215

string

Promise<ArrayBuffer>


remove(normalizedPath): Promise<void>

Defined in: storage/fs.ts:259

string

Promise<void>


rename(normalizedPath, normalizedNewPath): Promise<void>

Defined in: storage/fs.ts:260

string

string

Promise<void>


rmdir(normalizedPath, recursive): Promise<void>

Defined in: storage/fs.ts:258

string

boolean

Promise<void>


stat(normalizedPath): Promise<Stat | null>

Defined in: storage/fs.ts:213

string

Promise<Stat | null>


trashLocal(normalizedPath): Promise<void>

Defined in: storage/fs.ts:264

string

Promise<void>


trashSystem(normalizedPath): Promise<boolean>

Defined in: storage/fs.ts:263

string

Promise<boolean>


write(normalizedPath, data, options?): Promise<void>

Defined in: storage/fs.ts:216

string

string

Partial<FileProperties>

Promise<void>


writeBinary(normalizedPath, data, options?): Promise<void>

Defined in: storage/fs.ts:221

string

ArrayBuffer

Partial<FileProperties>

Promise<void>