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
Create parent directories as necessary.
dataset/ETHPy150Open owtf/owtf/install/install.py/create_directory