

def handle(self, request, data):
    try:
        if (not data['parent']):
            api.swift.swift_create_container(request, data['name'])
            messages.success(request, _('Container created successfully.'))
        else:
            (container, slash, remainder) = data['parent'].partition('/')
            remainder = remainder.rstrip('/')
            subfolder_name = '/'.join([bit for bit in (container, data['name']) if bit])
            api.swift.swift_create_subfolder(request, container, subfolder_name)
            messages.success(request, _('Folder created successfully.'))
        return True
    except Exception:
        exceptions.handle(request, _('Unable to create container.'))

dataset/ETHPy150Open Havate/havate-openstack/proto-build/gui/horizon/Horizon_GUI/openstack_dashboard/dashboards/project/containers/forms.py CreateContainer.handle/VarMisuse@99/120 `remainder`->`container`