public function update($path = '.')
    {

        if(!$this->svnEnabled)
            return false;

        $user = escapeshellarg($this->svnUsername);
        $pw = escapeshellarg($this->svnPassword);

        $creds = !empty($this->svnUsername) && !empty($this->svnPassword) ? "--username {$user} --password {$pw}" : "";

        $cmd = "svn update {$creds} -r HEAD ".PATH_ROOT.'/'.$path;
        $this->Logger->debug($cmd);

        $updateRes = trim(shell_exec($cmd));

        if(empty($updateRes))
            return false;

        $this->Logger->debug($updateRes);

        return true;
    }