workflow_script
workflow_script copied to clipboard
Not running the script for directories
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
Related thread: https://help.nextcloud.com/t/flow-app-external-script-not-triggered-for-folder-tags/214594
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.