Occ file:scan reports error home storage not writable

Nextcloud 10.0.0

Home storage for user test1 not writable
Make sure you’re running the scan command only as the user the web server runs as

The solutions in the file /apps/files_sharing/lib/sharedstorage.php:

https://github.com/owncloud/core/commit/6f4ba321613ddf406fa0fcbb1228e89ca35e8425.patch

}

/**
    • @inheritdoc
  • */
  • public function instanceOfStorage($class) {
  •   if (in_array($class, ['\OC\Files\Storage\Home', '\OC\Files\ObjectStore\HomeObjectStoreStorage'])) {
    
  •   	return false;
    
  •   }
    
  •   return parent::instanceOfStorage($class);
    
  • }
  • /**
    • @return string
      */
      public function getShareId() {

After the patch file:scan works ok, You need to be corrected in the next version nexcloud.