Syncing files added manually to user through USB (home server)

Hi all !

As USB3 is quicker than wi-fi, I tried to copy some files from a USB stick into the files of one of the user :

$ sudo cp -rf /media/usb/Source_Directory /var/www/data/User/files/Dest_Directory

However, I can’t see those when I connect User to the browser interface for NextCloud : it only shows old files that were here before.

Any idea how to sync it in order to make it visible and usable to User ?

Thanks beforehand

My installation is :

  • Mac Mini running Ubuntu Server 16.04
  • NextCloud 12.0.5
  • access through ssh