When I use occ files:scan
it will scan all files include mount dir.
What can I do if I don’t want let it scan mount files?
I think you can use
occ files:scan --home-only
https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/occ_command.html