Nextcloud version: 17
Operating system and version: Shared hoster
PHP version: 7.1
Seems strange, that files:scan seems not able to detect some paths but is able to detect a directory deeper.
User rights and groups are not different.
spwilch@marissa /Nextcloud> php occ files:scan --path=User9 The current PHP memory limit is below the recommended value of 512MB. Path not found: /User9 +---------+-------+--------------+ | Folders | Files | Elapsed time | +---------+-------+--------------+ | 0 | 0 | 00:00:00 | +---------+-------+--------------+ spwilch@marissa /Nextcloud> php occ files:scan --path=User9/documents The current PHP memory limit is below the recommended value of 512MB. Starting scan for user 1 out of 1 (User9) +---------+-------+--------------+ | Folders | Files | Elapsed time | +---------+-------+--------------+ | 1 | 9 | 00:00:00 | +---------+-------+--------------+ spwilch@marissa /Nextcloud> php occ files:scan --path=User9/files The current PHP memory limit is below the recommended value of 512MB. Starting scan for user 1 out of 1 (User9) Path not found: /User9/files +---------+-------+--------------+ | Folders | Files | Elapsed time | +---------+-------+--------------+ | 139 | 941 | 00:00:03 | +---------+-------+--------------+ spwilch@marissa /Nextcloud> php occ files:scan --path=User9/files/test The current PHP memory limit is below the recommended value of 512MB. Starting scan for user 1 out of 1 (User9) +---------+-------+--------------+ | Folders | Files | Elapsed time | +---------+-------+--------------+ | 2 | 8 | 00:00:00 | +---------+-------+--------------+