import tempfile


def create_temp_folder(prefix=None):
    """
    creates a new temporary directory and returns it's path
    :param prefix: the prefix for the temp folder 
    :return: full path of the new directory
    """
    if prefix is not None:
        return tempfile.mkdtemp(prefix=prefix)
    else:
        return tempfile.mkdtemp()