files
files
- Description:
- Source:
Methods
(async, static) add(path, content) → {Promise.<void>}
- Description:
- Source:
Parameters:
Name |
Type |
Description |
path |
string
|
file path |
content |
string
|
file content |
Returns:
-
Type
-
Promise.<void>
(async, static) deleteFiles(paths)
- Description:
- Source:
Parameters:
Name |
Type |
Description |
paths |
Array.<string>
|
file paths to delete |
(async, static) getContent(path)
- Description:
- Source:
Parameters:
Name |
Type |
Description |
path |
string
|
file path |
(async, static) getFileBase64(path) → {Promise.<string>}
- Description:
- Returns binary file content as base64 encoded string
- Source:
Parameters:
Name |
Type |
Description |
path |
|
|
Returns:
- base64 encoded string
-
Type
-
Promise.<string>
(static) getStructure()
- Description:
- Returns file tree structure
- Source:
Type Definitions
FileChangeCallback(path, content)
- Description:
- Source:
Parameters:
Name |
Type |
Description |
path |
string
|
file path |
content |
string
|
file content |