|
|
|
@ -42,10 +42,15 @@ class Migration { |
|
|
|
public function reorganizeFolderStructure() { |
|
|
|
public function reorganizeFolderStructure() { |
|
|
|
$this->reorganizeSystemFolderStructure(); |
|
|
|
$this->reorganizeSystemFolderStructure(); |
|
|
|
|
|
|
|
|
|
|
|
$users = \OCP\User::getUsers(); |
|
|
|
$limit = 500; |
|
|
|
foreach ($users as $user) { |
|
|
|
$offset = 0; |
|
|
|
$this->reorganizeFolderStructureForUser($user); |
|
|
|
do { |
|
|
|
} |
|
|
|
$users = \OCP\User::getUsers('', $limit, $offset); |
|
|
|
|
|
|
|
foreach ($users as $user) { |
|
|
|
|
|
|
|
$this->reorganizeFolderStructureForUser($user); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
$offset += $limit; |
|
|
|
|
|
|
|
} while(count($users) >= $limit); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function reorganizeSystemFolderStructure() { |
|
|
|
public function reorganizeSystemFolderStructure() { |
|
|
|
|