public function connect()
    {
        $this->resource = stream_context_create();
        if ($this->configuration->getDir() == '') {
            return true;
        }

        if ($this->driver->chdir($this->configuration->getDir()) == true) {
            return true;
        }

        return false;
    }