Have a virtual folder base on iptc content

Hi I really don’t know where i can leave this post, so sorry and if I must move it, please tell me.
At the end what I want to achive is to have on my phone a folder with my favorite photos. I want to achive this automatically and preferabli using iptc clasification property. What I think until know is to run a script in my linux server that copy every file with this property to a folder and then run an occ scan file. I want to know if there is a better way, preferably in nextcloud.
Thanks.