private function fileGenerateTmp($compression = null)
    {
        $fileTmp     = null;
        $compression = 'none' == $compression ? null : $compression;
        while (true) {
            $fileTmpName = uniqid($this->getFileName($compression), true);
            $fileTmp     = sys_get_temp_dir().'/'.$fileTmpName;
            if (!file_exists($fileTmp)) {
                if (!$compression) {
                    $this->file->setTmp($fileTmp);
                    $this->setLogs($fileTmp, 'fileTmp');
                }
                break;
            }
        }

        return $fileTmp;
    }
private function fileGenerateTmp($compression = null)
    {
        $fileTmp     = null;
        $compression = 'none' == $compression ? null : $compression;
        while (true) {
            $fileTmpName = uniqid($this->getFileName($compression), true);
            $fileTmp     = sys_get_temp_dir().'/'.$fileTmpName;
            if (!file_exists($fileTmp)) {
                if (!$compression) {
                    $this->file->setTmp($fileTmp);
                    $this->setLogs($fileTmp, 'fileTmp');
                }
                break;
            }
        }

        return $fileTmp;
    }
private function fileGenerateTmp ( $ compression = null ) { $ fileTmp = null ; $ compression = 'none' == $ compression ? null : $ compression ; while ( true ) { $ fileTmpName = uniqid ( $ this -> getFileName ( $ compression ) , true ) ; $ fileTmp = sys_get_temp_dir ( ) . '/' . $ fileTmpName ; if ( ! file_exists ( $ fileTmp ) ) { if ( ! $ compression ) { $ this -> file -> setTmp ( $ fileTmp ) ; $ this -> setLogs ( $ fileTmp , 'fileTmp' ) ; } break ; } } return $ fileTmp ; }
Generates a temporary path for file generation.

@param string $compression

@return null|string
Generates a temporary path for file generation .