Nhảy tới nội dung

Interface: GenericFileSystem

A filesystem interface that is meant to be compatible with the 'fs' module from Node.js. Allows for the use of similar inteface implementation on browsers.

Implemented by

Methods

access

access(path): Promise<void>

Parameters

NameType
pathstring

Returns

Promise<void>

Defined in

packages/core/src/storage/FileSystem.ts:12


mkdir

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

Parameters

NameType
pathstring
options?any

Returns

Promise<void>

Defined in

packages/core/src/storage/FileSystem.ts:13


readFile

readFile(path, options?): Promise<string>

Parameters

NameType
pathstring
options?any

Returns

Promise<string>

Defined in

packages/core/src/storage/FileSystem.ts:11


writeFile

writeFile(path, content, options?): Promise<void>

Parameters

NameType
pathstring
contentstring
options?any

Returns

Promise<void>

Defined in

packages/core/src/storage/FileSystem.ts:10