private static function updateFolder($uid_shared_with) { if ($uid_shared_with != self::PUBLICLINK) { if (OC_Group::groupExists($uid_shared_with)) { $uid_shared_with = OC_Group::usersInGroup($uid_shared_with); // Remove the owner from the list of users in the group $uid_shared_with = array_diff($uid_shared_with, array(OCP\USER::getUser())); } else { if ($uid = strstr($uid_shared_with, '@', true)) { $uid_shared_with = array($uid); } else { $uid_shared_with = array($uid_shared_with); } } foreach ($uid_shared_with as $uid) { $sharedFolder = $uid . '/files/Shared'; // Update mtime of shared folder to invoke a file cache rescan $rootView = new OC_FilesystemView('/'); $rootView->touch($sharedFolder); } } }