Is there a script, command or plugin that checks if there are new files in the image folders?

I added a PDF file to one of the images folders for a process in Goobi workflow.

Is there a way to make it be included in the mets.xml file during a process step?

To check “Update metadata index when finishing” for the step did not do it.

Kind regards,