public function mv($sourcepath, $destpath)
    {
        $this->errorHandler->start();
        if ($sourcepath == '' || substr($sourcepath, 0, 1) !== '/') {
            $sourcepath = $this->dir . '/' . $sourcepath;
        }

        if ($destpath == '' || substr($destpath, 0, 1) !== '/') {
            $destpath = $this->dir . '/' . $destpath;
        }

        if (($sourcepath = $this->driver->realpath($this->resource, $sourcepath)) !== false) {
            if (($this->driver->sftpRename($this->resource, $sourcepath, $destpath)) !== false) {
                $this->errorHandler->stop(); //renamed file

                return true;
            }//could not rename file
        }//Could not get reapath of sourcefile, it does not exist

        $this->errorHandler->stop();

        return false;
    }