function DataDirectory(path) {
        this.path = path;
        Static_1.default.createDirectoryIfNotExists(path);
        this.config = new Config_1.default(this.path, 'config.toml');
        var keys = Static_1.default.getParentAndName(this.config.data.storage.keystore);
        this.keystore = new Keystore_1.default(keys.parent, keys.name);
        this.database = new Database_1.default(this.path, 'db.json');
    }
/**
     * Data directory controller class
     *
     * @description
     * A data directory is a folder which contains the 'keystore', 'db.json' and the 'config.toml' file for the client
     * sided tools for EVM-Lite. The default directory structure is:
     *
     * + Data Directory
     *     + keystore
     *     - db.json
     *     - config.toml
     *
     * If the directory does not exist it will be created along with all required files. The keystore directory is
     * relative to the 'config.toml' file.
     *
     * @param path - The relative or absolute path for the data directory.
     */




If the directory does not exist it will be created along with all required files. The keystore directory is
relative to the 'config.toml' file.

@param path - The relative or absolute path for the data directory.
If the directory does not exist it will be created along with all required files . The keystore directory is relative to the ' config . toml ' file . @param path - The relative or absolute path for the data directory .
function DataDirectory(path) {
        this.path = path;
        Static_1.default.createDirectoryIfNotExists(path);
        this.config = new Config_1.default(this.path, 'config.toml');
        var keys = Static_1.default.getParentAndName(this.config.data.storage.keystore);
        this.keystore = new Keystore_1.default(keys.parent, keys.name);
        this.database = new Database_1.default(this.path, 'db.json');
    }
function DataDirectory ( path ) { this . path = path ; Static_1 . default . createDirectoryIfNotExists ( path ) ; this . config = new Config_1 . default ( this . path , 'config.toml' ) ; var keys = Static_1 . default . getParentAndName ( this . config . data . storage . keystore ) ; this . keystore = new Keystore_1 . default ( keys . parent , keys . name ) ; this . database = new Database_1 . default ( this . path , 'db.json' ) ; }
Data directory controller class
 @description
 A data directory is a folder which contains the 'keystore', 'db.json' and the 'config.toml' file for the client
 sided tools for EVM-Lite.
Data directory controller class @description A data directory is a folder which contains the ' keystore ' ' db . json ' and the ' config . toml ' file for the client sided tools for EVM - Lite .