def get_new_tempdir(self, create=True):
        """
        Create a temporary directory and return the path to it.
        :param create: if True, create the directory
        :type create: bool
        :return: path to a temporary directory
        :rtype: str
        """
        tp = tempfile.gettempdir()
        p = os.path.join(tp, "stash_test_getstash" + str(time.time()))
        if not os.path.exists(p) and create:
            os.makedirs(p)
        return p

        Create a temporary directory and return the path to it.
        :param create: if True, create the directory
        :type create: bool
        :return: path to a temporary directory
        :rtype: str
        
tests/install/test_getstash.py