mirror of
https://github.com/run-llama/LlamaIndexTS.git
synced 2026-07-18 00:24:30 -04:00
2.5 KiB
2.5 KiB
id, title, sidebar_label, sidebar_position, custom_edit_url
| id | title | sidebar_label | sidebar_position | custom_edit_url |
|---|---|---|---|---|
| InMemoryFileSystem | Class: InMemoryFileSystem | InMemoryFileSystem | 0 | null |
A filesystem implementation that stores files in memory.
Implements
Constructors
constructor
• new InMemoryFileSystem()
Properties
files
• Private files: Record<string, any> = {}
Defined in
Methods
access
▸ access(path): Promise<void>
Parameters
| Name | Type |
|---|---|
path |
string |
Returns
Promise<void>
Implementation of
Defined in
mkdir
▸ mkdir(path, options?): Promise<void>
Parameters
| Name | Type |
|---|---|
path |
string |
options? |
any |
Returns
Promise<void>
Implementation of
Defined in
readFile
▸ readFile(path, options?): Promise<string>
Parameters
| Name | Type |
|---|---|
path |
string |
options? |
any |
Returns
Promise<string>
Implementation of
Defined in
writeFile
▸ writeFile(path, content, options?): Promise<void>
Parameters
| Name | Type |
|---|---|
path |
string |
content |
string |
options? |
any |
Returns
Promise<void>