Run occ:files scan as cronjob in container

My personal data are in some folders, just lets say its one folder. This one folder is a smb share because of reason. If i put a file into this folder from a system, no matter if its windows, macos or linux, it’s not visible in nextcloud web interface. It’s only visible after running php occ files:scan --all. So if i don’t use this command, i can’t see new files in nextcloud interface after moving/creating those in my smb share.