Properties:
Name | Type | Description |
---|---|---|
filesystem |
core.Filesystem | (default: |
modified |
bool | [readonly] |
path |
string | (default: |
ready |
bool | [readonly] |
Extends
Methods
-
Returns information about the given key, or
null
if the key does not exist.Name Type Description key
string The key to retrieve the information from.
Returns:
Type Description object The information object { type, description }
. -
Lists the contents of the given folder key.
Name Type Description folderKey
string The key to list the contents of.
Returns:
Type Description Array.<string> The names of the content items. -
Reads the given key. Returns the
defaultValue
if the key was not found.Name Type Description key
string The key to read.
defaultValue
any The default value to return if the key was not found.
Returns:
Type Description any The key's value. -
Synchronous version of core.RegistryFile#read. This method is not part of the registry interface and only provides valid results once the registry has the
ready
flag set totrue
.Name Type Description key
string The key to read.
defaultValue
any The default value to return if the key was not found.
Returns:
Type Description any The key's value. -
Removes the given key.
Name Type Description key
string The key to remove.
-
Writes the given key. If the key does not yet exist, it will be created.
Name Type Description key
string The key.
value
any The value to write.
description
string optional An optional description text.