Class: InMemoryFileSystem
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
>