protected function doRelocation()
    {
        if (!$this->_original) {
            return;
        }

        if (is_dir($this->_original->path())) {
            if ($this->_action === 'move') {
                Folder::move($this->_original->path(), $this->path());
            } elseif ($this->_action === 'copy') {
                Folder::copy($this->_original->path(), $this->path());
            }
        }

        if ($this->name() !== $this->_original->name()) {
            $path = $this->path();
            if (is_file($path . '/' . $this->_original->name())) {
                rename($path . '/' . $this->_original->name(), $path . '/' . $this->name());
            }
        }

    }
protected function doRelocation()
    {
        if (!$this->_original) {
            return;
        }

        if (is_dir($this->_original->path())) {
            if ($this->_action === 'move') {
                Folder::move($this->_original->path(), $this->path());
            } elseif ($this->_action === 'copy') {
                Folder::copy($this->_original->path(), $this->path());
            }
        }

        if ($this->name() !== $this->_original->name()) {
            $path = $this->path();
            if (is_file($path . '/' . $this->_original->name())) {
                rename($path . '/' . $this->_original->name(), $path . '/' . $this->name());
            }
        }

    }
protected function doRelocation ( ) { if ( ! $ this -> _original ) { return ; } if ( is_dir ( $ this -> _original -> path ( ) ) ) { if ( $ this -> _action === 'move' ) { Folder :: move ( $ this -> _original -> path ( ) , $ this -> path ( ) ) ; } elseif ( $ this -> _action === 'copy' ) { Folder :: copy ( $ this -> _original -> path ( ) , $ this -> path ( ) ) ; } } if ( $ this -> name ( ) !== $ this -> _original -> name ( ) ) { $ path = $ this -> path ( ) ; if ( is_file ( $ path . '/' . $ this -> _original -> name ( ) ) ) { rename ( $ path . '/' . $ this -> _original -> name ( ) , $ path . '/' . $ this -> name ( ) ) ; } } }
Moves or copies the page in filesystem.

@internal

@throws \Exception
Moves or copies the page in filesystem .