Understanding how the data folder is working

On a fresh stable install -
I have made modifications directly on the server, in the shell, inside the data/username/files/ directory.
(created a folder, moved a couple of files around).
These modification do not reflect on the synchronised directory on my mac - while, on the other hand - modifications I am making locally (on the client computer - Mac with latest Nextcloud synch app installed) then they appear inside data/username/files/

What am I missing? Is there some doc. somewhere around this specific way it synchronize?

Thanks for the info

Nextcloud version :
Operating system and version : Debian Stretch

Hi @jsavalle,

what you are missing is, that it was designed that way.

After manipulating files locally in the /data folder results in the database not knowing what the hell is goin on. Therfore the command:
sudo -u www-data php /var/www/nextcloud/occ files:scan
exists. You may specify a user as last argument or just ‘all’

I´m pretty sure you will find this behaviour in the documentation.


If you are syncing via syncclient, of course your Nextcloud knows about the files, because they where properly inserted to the DB through the php code on the server.


Yep I get the logic, I just didn’t know what to look for in the documentation…
I’ll look into it.

Thanks for pointing me in the right direction :slight_smile:

1 Like