Methods
(static) delete(path) → {Promise.<WriteConfirmation>}
Parameters:
Name | Type | Description |
---|---|---|
path |
string | The file path to delete |
Returns:
Write confirmation
- Type
- Promise.<WriteConfirmation>
(static) get(path) → {Promise.<any>}
Parameters:
Name | Type | Description |
---|---|---|
path |
string | The wanted file path |
Returns:
File contents
- Type
- Promise.<any>
(static) upload(form) → {Promise.<WriteConfirmation>}
Parameters:
Name | Type | Description |
---|---|---|
form |
FormData | Form data with path, filename, and file |
Returns:
Write confirmation
- Type
- Promise.<WriteConfirmation>