Skip to content

Not running the script for directories #386

Open

Description

@Jurrer

Hello, in the following line we are checking if the script is ran for a file(on tagging event)
Why is that check performed?
Why can't we run this script for a directory?

if ($event->getObjectType() !== 'files') {

I need to perform compression on a directory and in the current state it is not possible to trigger it for a directory.

In the logs, I see that workflowengine does run, but does nothing :/

Flow activated by event OCP\SystemTag\ISystemTagObjectMapper::assignTags
Flow handling done for event OCP\SystemTag\ISystemTagObjectMapper::assignTags 

Activity

  1. blizzz commented on Jun 20, 2025

    @blizzz
    Member

    The code you pointed out it not referring to a mime type, but the files umbrella and it does not descriminate against files or folders.

    The execution of scripts happens in the background, the operation would only create a job, if the criteria fit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions