Storage

Storage

Methods

(async) read() → {string|null}

Reads file contents from storage. Resolves to null if file doesn't exist.

Returns:

file contents

Type
string | null

(async) remove()

Removes file from storage.

(async) write()

Writes file contents from storage.
Without login (authenticationManager.logIn) a user can only write to file paths beginning with '/public/'.
After a login the user can also access his private storage at '//'.