kestra-io / plugin-fs

https://kestra.io/plugins/plugin-fs/
Apache License 2.0
6 stars 7 forks source link

fix(docs): Fix examples looping over files' paths #146

Closed nicoallgood closed 2 months ago

nicoallgood commented 2 months ago

trigger.files is an array which is looped upon. .path jq should be evaluated within the loop.

Current examples fail with:


Unable to resolve state from the Flowable task: io.pebbletemplates.pebble.error.PebbleException: Unable to parse jq value ‘[{name=dump.rtf, path=kestra:///company/team/test-filechange/executions/7hwybe4Ihb0ZulMFr6ZiG3/trigger/watch/2340097534978168835.rtf, size=2645, flags=15, userId=0, groupId=0, fileType=FILE, accessDate=2024-09-02T16:40:56Z, permissions=33188, updatedDate=2024-09-06T08:48:50Z, symbolicLink=false}]’ with type ‘java.util.ArrayList’ ({{ trigger.files | jq(‘.path’) }}:1)```