elFinder\elFinderVolumeDriver::move PHP Method

move() protected method

Move file Return new file path or false.
Author: Dmitry (dio) Levashov
protected move ( string $src, string $dst, string $name ) : string | false
$src string source path
$dst string destination dir path
$name string new file name
return string | false
    protected function move($src, $dst, $name)
    {
        $stat = $this->stat($src);
        $stat['realpath'] = $src;
        $this->rmTmb($stat);
        // can not do rmTmb() after _move()
        $this->clearcache();
        if ($this->_move($src, $dst, $name)) {
            $this->removed[] = $stat;
            return $this->_joinPath($dst, $name);
        }
        return $this->setError(elFinder::ERROR_MOVE, $this->_path($src));
    }