Access¶
This class is for requesting and managing access to modules/folders on
the remote. It gets initialized as remoteStorage.access
.
List of functions¶
-
claim
(scope, mode)¶ Claim access on a given scope with given mode.
- Arguments
scope (string) – An access scope, such as “contacts” or “calendar”
mode (string) – Access mode. Either “r” for read-only or “rw” for read/write
Example:
remoteStorage.access.claim('contacts', 'r'); remoteStorage.access.claim('pictures', 'rw');
Claiming root access, meaning complete access to all files and folders of a storage, can be done using an asterisk for the scope:
remoteStorage.access.claim('*', 'rw');