files

firestorm. Namespace

files

Description:
  • Firestorm file handler

Source:

Methods

(static) delete(path) → {Promise.<WriteConfirmation>}

Description:
  • Delete a file by its path

Source:
Parameters:
Name Type Description
path string

The file path to delete

Returns:

Write confirmation

Type
Promise.<WriteConfirmation>

(static) get(path) → {Promise.<any>}

Description:
  • Get a file by its path

Source:
Parameters:
Name Type Description
path string

The wanted file path

Returns:

File contents

Type
Promise.<any>

(static) upload(form) → {Promise.<WriteConfirmation>}

Description:
  • Upload a file

Source:
Parameters:
Name Type Description
form FormData

Form data with path, filename, and file

Returns:

Write confirmation

Type
Promise.<WriteConfirmation>