core/Command/Encryption/ChangeKeyStorageRoot.php
/**
	 * iterate over each user and move the keys to the new storage
	 *
	 * @param string $oldRoot
	 * @param string $newRoot
	 * @param OutputInterface $output
	 */
iterate over each user and move the keys to the new storage
@param string $oldRoot
@param string $newRoot
@param OutputInterface $output
iterate over each user and move the keys to the new storage @param string $oldRoot @param string $newRoot @param OutputInterface $output
protected function moveUserKeys($oldRoot, $newRoot, OutputInterface $output) {
		$progress = new ProgressBar($output);
		$progress->start();
		foreach($this->userManager->getBackends() as $backend) {
			$limit = 500;
			$offset = 0;
			do {
				$users = $backend->getUsers('', $limit, $offset);
				foreach ($users as $user) {
					$progress->advance();
					$this->setupUserFS($user);
					$this->moveUserEncryptionFolder($user, $oldRoot, $newRoot);
				}
				$offset += $limit;
			} while(count($users) >= $limit);
		}
		$progress->finish();
	}
protected function moveUserKeys ( $ oldRoot , $ newRoot , OutputInterface $ output ) { $ progress = new ProgressBar ( $ output ) ; $ progress -> start ( ) ; foreach ( $ this -> userManager -> getBackends ( ) as $ backend ) { $ limit = 500 ; $ offset = 0 ; do { $ users = $ backend -> getUsers ( '' , $ limit , $ offset ) ; foreach ( $ users as $ user ) { $ progress -> advance ( ) ; $ this -> setupUserFS ( $ user ) ; $ this -> moveUserEncryptionFolder ( $ user , $ oldRoot , $ newRoot ) ; } $ offset += $ limit ; } while ( count ( $ users ) >= $ limit ) ; } $ progress -> finish ( ) ; }
iterate over each user and move the keys to the new storage
 @param string $oldRoot
 @param string $newRoot
 @param OutputInterface $output
iterate over each user and move the keys to the new storage @param string $oldRoot @param string $newRoot @param OutputInterface $output