def create_directory(directory):
    try:
        os.makedirs(directory)
        return True
    except OSError:
        # Checks if the folder is empty
        if not os.listdir(directory):
            return True
        return False
Allows the backend to clean the username, if the backend defines a
dataset/ETHPy150Open owtf/owtf/install/install.py/create_directory--crossover with--dataset/ETHPy150Open django/django/django/contrib/auth/middleware.py/RemoteUserMiddleware.clean_username