apps/encryption/lib/Migration.php
/**
	 * iterate through users and reorganize the folder structure
	 */
iterate through users and reorganize the folder structure
iterate through users and reorganize the folder structure
public function reorganizeFolderStructure() {
		$this->reorganizeSystemFolderStructure();
		$limit = 500;
		$offset = 0;
		do {
			$users = \OCP\User::getUsers('', $limit, $offset);
			foreach ($users as $user) {
				$this->reorganizeFolderStructureForUser($user);
			}
			$offset += $limit;
		} while (count($users) >= $limit);
	}
public function reorganizeFolderStructure ( ) { $ this -> reorganizeSystemFolderStructure ( ) ; $ limit = 500 ; $ offset = 0 ; do { $ users = \ OCP \ User :: getUsers ( '' , $ limit , $ offset ) ; foreach ( $ users as $ user ) { $ this -> reorganizeFolderStructureForUser ( $ user ) ; } $ offset += $ limit ; } while ( count ( $ users ) >= $ limit ) ; }
iterate through users and reorganize the folder structure
iterate through users and reorganize the folder structure