original_string: 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());
              }
          }
  
      }
code: 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());
              }
          }
  
      }
code_tokens: 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 ( ) ) ; } } }
docstring: Moves or copies the page in filesystem.
  
  @internal
  
  @throws \Exception
docstring_tokens: Moves or copies the page in filesystem .