Moving files to Nexcloud folders

Hi,

While Nextcloud is a web application, please don’t write files to the nextcloud data directory in any other way than via web access. Meaning, it doesn’t work to move or copy files there via SSH.

You can do two things right now:

  1. remove the files (that don’t show up in the web interface) via SSH from that folder again and upload these files via web browser
  2. run the occ command with “files:scan all” (sudo -u <user of webserver> php /path/to/nextcloud/occ files:scan all)

The second option will re-scan all files in the user’s data folder and update the database, so that these files should show up in the browser. Nonetheless as stated above, this is not the regular way and should be avoided :slight_smile:

1 Like