public function dir($path = null, $create = false)
    {
        if (!isset($this->_baseDir)) {
            throw new App\Exception('Base directory not set');
        }
        return isset($path)
            ? $this->_baseDir->dir($path, $create)
            : $this->_baseDir;
    }