I've created a custom module that starts with a function that's browsing a directory and loading the file content in a variable.
Since the files and/or the file content might change in the directory, I'd like to add a widget that allows to rescan & reload the content.
To do this, I thought about calling the function in the custom module from a widget (button).
But I can't find the way to do it.
If someone knows or has a better idea, I'm all in.
All the best,