workflow_script icon indicating copy to clipboard operation
workflow_script copied to clipboard

Not running the script for directories

Open Jurrer opened this issue 6 months ago • 2 comments

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?

https://github.com/nextcloud/workflow_script/blob/21552a2427c2ee1458d355b29bedaf04f1cb68f1/lib/Operation.php#L116

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 

Jurrer avatar Jun 05 '25 16:06 Jurrer

Related thread: https://help.nextcloud.com/t/flow-app-external-script-not-triggered-for-folder-tags/214594

Jurrer avatar Jun 05 '25 17:06 Jurrer

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.

blizzz avatar Jun 20 '25 07:06 blizzz