Issue running occ file:scan

Hi, I’ve uploaded a bunch of files and they aren’t appearing. I have tried to run occ file:scan --all but I get the following:

PHP Parse error: syntax error, unexpected '{' in /var/www/vhosts/******/*********/owncloud/console.php on line 66

What information do you need to help? :slight_smile:

I got it… I had to login as the owner of the file (not root) then do the command pointing to the php file with no sudo or -u.

/opt/plesk/php/7.4/bin/php occ files:scan --all