Cake\Upgrade\Shell\Task\StageTask::move PHP Метод

move() публичный Метод

move
public move ( string $from, string $to ) : boolean
$from string
$to string
Результат boolean
    public function move($from, $to)
    {
        if (is_dir($from)) {
            $this->_findFiles('.*');
            foreach ($this->_files as $fromFile) {
                $newFile = str_replace($from, $new, $fromFile);
                if ($newFile !== $fromFile) {
                    $this->_staged['move'][$fromFile] = $newFile;
                }
            }
            $this->delete($from);
            return true;
        }
        $this->_staged['move'][$from] = $to;
        return true;
    }