original_string: private function prepareTargetUploadPath($path = null)
      {
          $absoluteTargetPath = implode('/', array_filter([
              rtrim($this->uploadpath, '/'), trim(dirname($path), '/'),
          ]));
  
          $this->results['path'] = $absoluteTargetPath;
          $this->results['dir'] = $this->getRelativePath($absoluteTargetPath);
  
          return $this->createDirectoryIfNotExists($absoluteTargetPath);
      }
code: private function prepareTargetUploadPath($path = null)
      {
          $absoluteTargetPath = implode('/', array_filter([
              rtrim($this->uploadpath, '/'), trim(dirname($path), '/'),
          ]));
  
          $this->results['path'] = $absoluteTargetPath;
          $this->results['dir'] = $this->getRelativePath($absoluteTargetPath);
  
          return $this->createDirectoryIfNotExists($absoluteTargetPath);
      }
code_tokens: private function prepareTargetUploadPath ( $ path = null ) { $ absoluteTargetPath = implode ( '/' , array_filter ( [ rtrim ( $ this -> uploadpath , '/' ) , trim ( dirname ( $ path ) , '/' ) , ] ) ) ; $ this -> results [ 'path' ] = $ absoluteTargetPath ; $ this -> results [ 'dir' ] = $ this -> getRelativePath ( $ absoluteTargetPath ) ; return $ this -> createDirectoryIfNotExists ( $ absoluteTargetPath ) ; }
docstring: Set target upload path.
  
  @access private
  @param  string $path (default: null)
  @return bool
docstring_tokens: Set target upload path .