We could add a button to rescan when when know new files have been added.
Sure. That would also expose an API endpoint, i.e. a HTTP POST to something like
/rest/rescan?repo=foo would be what happens when that button is clicked.
With this, it should be possible to create a inotify watcher that request /rest/rescan?repo=foo