original_string: protected function _setCurrentPath($path)
      {
          if ($this->_skipRoot && is_dir($path)) {
              $this->_currentPath = $path.(substr($path, -1)!=DS?DS:'');
          } else {
              $this->_currentPath = dirname($path) . DS;
          }
          return $this;
      }
code: protected function _setCurrentPath($path)
      {
          if ($this->_skipRoot && is_dir($path)) {
              $this->_currentPath = $path.(substr($path, -1)!=DS?DS:'');
          } else {
              $this->_currentPath = dirname($path) . DS;
          }
          return $this;
      }
code_tokens: protected function _setCurrentPath ( $ path ) { if ( $ this -> _skipRoot && is_dir ( $ path ) ) { $ this -> _currentPath = $ path . ( substr ( $ path , - 1 ) != DS ? DS : '' ) ; } else { $ this -> _currentPath = dirname ( $ path ) . DS ; } return $ this ; }
docstring: Set path to file which is packing.
  
  @param string $path
  @return Mage_Archive_Tar
docstring_tokens: Set path to file which is packing .