Directory Store

libflitter/utility/DirectoryStore

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.

store

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.

constructor()

returns:  this

Initializes the class. Sets this.store to a new Object.

add(String name, String directory)

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

get(String name)

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

No Comments
Back to top