So I tried to create a flow that does something like:
When File is accessed AND file system tag IS sometag RUN script rm %n
This flow above does apparently nothing, so I tried with something easier to check:
When File is renamed RUN script touch /tmp/test.txt
Still nothing happens…
I tried to check logs in nextcloud/data/nextcloud.log, but keeping it open with tail -f i see no new lines.
Browsing the web for answers or helps i found this thread Using Workflow External script to generate searchable PDF
I also tried to create an helper bash script like that but still no luck.
Can I have some working example of some simple workflow? Would be super cool if someone knows if the deleting file after download can be feasible in this way.
Well actually it does not delete the file from nextcloud, but I think I still should be ok with this. The most important thing was to have a one time download.
@anon75456558 That feature request has not been implemented, correct? Yes I read that documentation page, but being honest, I still have no clue on how write a working workflow. The Info there seems much different on what I see in the flow panel (at http://my-nextcloud.com/index.php/settings/admin/workflow)
Yes, I’m using the retention app to have a “base” deleting mechanism.
In this way if the shared file is downloaded, it will be automatically removed after x days, while the share link will instantly decay.
Else, if nobody download the file, it still will be deleted after the retention period.