code/libraries/joomlatools/library/filesystem/stream/buffer.php
public function getTemporaryFile($directory = null)
    {
        if ($directory === null) {
            $directory = $this->getTemporaryDirectory();
        }

        $name = str_replace('.', '', uniqid('buffer', true));
        $path = $directory.'/'.$name;

        touch($path);

        return $path;
    }
public function getTemporaryFile($directory = null)
    {
        if ($directory === null) {
            $directory = $this->getTemporaryDirectory();
        }

        $name = str_replace('.', '', uniqid('buffer', true));
        $path = $directory.'/'.$name;

        touch($path);

        return $path;
    }
public function getTemporaryFile ( $ directory = null ) { if ( $ directory === null ) { $ directory = $ this -> getTemporaryDirectory ( ) ; } $ name = str_replace ( '.' , '' , uniqid ( 'buffer' , true ) ) ; $ path = $ directory . '/' . $ name ; touch ( $ path ) ; return $ path ; }
Creates a file with a unique file name

@param string|null $directory Uses the result of getTemporaryDirectory() by default
@return string File path
Creates a file with a unique file name