Reindexing all files and folders in NextCloud

Submitted by Fekete Zoltán on

If you have missing files, or any discrepancies between physical and virtual filesystem under NextCloud, do this:

Go to the root directory of the NexctCloud installation, the issue the command (use webserver's owner as user, here: www):

 sudo -u www php ./occ files:scan --all