protected static function getTempDir()
    {
        $name = tempnam(sys_get_temp_dir(), 'tmp');
        unlink($name);
        mkdir($name, 0777, true);
        return $name;
    }
protected static function getTempDir()
    {
        $name = tempnam(sys_get_temp_dir(), 'tmp');
        unlink($name);
        mkdir($name, 0777, true);
        return $name;
    }
protected static function getTempDir ( ) { $ name = tempnam ( sys_get_temp_dir ( ) , 'tmp' ) ; unlink ( $ name ) ; mkdir ( $ name , 0777 , true ) ; return $ name ; }
Returns a newly created temporary directory in the OS's temporary location.
All the files and folders of the package are moved to this directory and
packaged.

@return string the path the newly created temporary directory
Returns a newly created temporary directory in the OS s temporary location . All the files and folders of the package are moved to this directory and packaged .