original_string: private function tempDir()
  	{
  		$tempPath = tempnam($this->tmp, 'elFinder');
  		if (!$tempPath) {
  			$this->setError(elFinder::ERROR_CREATING_TEMP_DIR, $this->tmp);
  			return false;
  		}
  		$success = unlink($tempPath);
  		if (!$success) {
  			$this->setError(elFinder::ERROR_CREATING_TEMP_DIR, $this->tmp);
  			return false;
  		}
  		$success = mkdir($tempPath, 0700, true);
  		if (!$success) {
  			$this->setError(elFinder::ERROR_CREATING_TEMP_DIR, $this->tmp);
  			return false;
  		}
  		return $tempPath;
  	}
code: private function tempDir()
  	{
  		$tempPath = tempnam($this->tmp, 'elFinder');
  		if (!$tempPath) {
  			$this->setError(elFinder::ERROR_CREATING_TEMP_DIR, $this->tmp);
  			return false;
  		}
  		$success = unlink($tempPath);
  		if (!$success) {
  			$this->setError(elFinder::ERROR_CREATING_TEMP_DIR, $this->tmp);
  			return false;
  		}
  		$success = mkdir($tempPath, 0700, true);
  		if (!$success) {
  			$this->setError(elFinder::ERROR_CREATING_TEMP_DIR, $this->tmp);
  			return false;
  		}
  		return $tempPath;
  	}
code_tokens: private function tempDir ( ) { $ tempPath = tempnam ( $ this -> tmp , 'elFinder' ) ; if ( ! $ tempPath ) { $ this -> setError ( elFinder :: ERROR_CREATING_TEMP_DIR , $ this -> tmp ) ; return false ; } $ success = unlink ( $ tempPath ) ; if ( ! $ success ) { $ this -> setError ( elFinder :: ERROR_CREATING_TEMP_DIR , $ this -> tmp ) ; return false ; } $ success = mkdir ( $ tempPath , 0700 , true ) ; if ( ! $ success ) { $ this -> setError ( elFinder :: ERROR_CREATING_TEMP_DIR , $ this -> tmp ) ; return false ; } return $ tempPath ; }
docstring: Create writable temporary directory and return path to it.
  @return string path to the new temporary directory or false in case of error.
docstring_tokens: Create writable temporary directory and return path to it .