lib/base/FileStorage.php
public function getTempPath()
    {
        if (is_null($this->_tempPath)) {
            $this->_tempPath = sys_get_temp_dir();
        }
        if (!is_dir($this->_tempPath)) {
            @mkdir($this->_tempPath, 0755, true);
            if (!is_dir($this->_tempPath)) {
                throw new Exception("Unable to create temporary path folder {$this->_tempPath}");
            }
        }

        return $this->_tempPath;
    }
public function getTempPath()
    {
        if (is_null($this->_tempPath)) {
            $this->_tempPath = sys_get_temp_dir();
        }
        if (!is_dir($this->_tempPath)) {
            @mkdir($this->_tempPath, 0755, true);
            if (!is_dir($this->_tempPath)) {
                throw new Exception("Unable to create temporary path folder {$this->_tempPath}");
            }
        }

        return $this->_tempPath;
    }
public function getTempPath ( ) { if ( is_null ( $ this -> _tempPath ) ) { $ this -> _tempPath = sys_get_temp_dir ( ) ; } if ( ! is_dir ( $ this -> _tempPath ) ) { @ mkdir ( $ this -> _tempPath , 0755 , true ) ; if ( ! is_dir ( $ this -> _tempPath ) ) { throw new Exception ( "Unable to create temporary path folder {$this->_tempPath}" ) ; } } return $ this -> _tempPath ; }
Get a temporary path.

@throws Exception [[@doctodo exception_description:Exception]]
@return string Temporary file path
Get a temporary path .