Transfer room shares too with the "files:transfer-ownership" command
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
523fdb612c
commit
30d8e3ee05
|
@ -217,7 +217,7 @@ class TransferOwnership extends Command {
|
||||||
$output->writeln("Collecting all share information for files and folder of $this->sourceUser ...");
|
$output->writeln("Collecting all share information for files and folder of $this->sourceUser ...");
|
||||||
|
|
||||||
$progress = new ProgressBar($output, count($this->shares));
|
$progress = new ProgressBar($output, count($this->shares));
|
||||||
foreach([\OCP\Share::SHARE_TYPE_GROUP, \OCP\Share::SHARE_TYPE_USER, \OCP\Share::SHARE_TYPE_LINK, \OCP\Share::SHARE_TYPE_REMOTE] as $shareType) {
|
foreach([\OCP\Share::SHARE_TYPE_GROUP, \OCP\Share::SHARE_TYPE_USER, \OCP\Share::SHARE_TYPE_LINK, \OCP\Share::SHARE_TYPE_REMOTE, \OCP\Share::SHARE_TYPE_ROOM] as $shareType) {
|
||||||
$offset = 0;
|
$offset = 0;
|
||||||
while (true) {
|
while (true) {
|
||||||
$sharePage = $this->shareManager->getSharesBy($this->sourceUser, $shareType, null, true, 50, $offset);
|
$sharePage = $this->shareManager->getSharesBy($this->sourceUser, $shareType, null, true, 50, $offset);
|
||||||
|
|
Loading…
Reference in New Issue