Directory Store


exports:  class DirectoryStore

class DirectoryStore

Resolves and stores fully-qualified paths to named directories. This is meant to be used by Flitter units to reference directories programmatically so they can be changed in config. This is usually instantiated in _flit.directories.


type:  Object

Stores the registered directories in key-value pairs such that the key is the name of the directory, and the value is the fully-qualified path of the directory.


returns:  this

Initializes the class. Sets to a new Object.

add(String name, String directory)

Resolves the specified directory to a fully-qualified path and stores it by name in

get(String name)

Returns the fully-qualified directory from with the given name.

No Comments
Back to top