Ana içeriğe geç

Class: InMemoryFileSystem

A filesystem implementation that stores files in memory.

Implements

Constructors

constructor

new InMemoryFileSystem()

Properties

files

Private files: Record<string, any> = {}

Defined in

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

Methods

access

access(path): Promise<void>

Parameters

NameType
pathstring

Returns

Promise<void>

Implementation of

GenericFileSystem.access

Defined in

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


mkdir

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

Parameters

NameType
pathstring
options?any

Returns

Promise<void>

Implementation of

GenericFileSystem.mkdir

Defined in

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


readFile

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

Parameters

NameType
pathstring
options?any

Returns

Promise<string>

Implementation of

GenericFileSystem.readFile

Defined in

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


writeFile

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

Parameters

NameType
pathstring
contentstring
options?any

Returns

Promise<void>

Implementation of

GenericFileSystem.writeFile

Defined in

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