|
@@ 128-137 (lines=10) @@
|
| 125 |
|
* |
| 126 |
|
* @deprecated 8.2.0 use GlobalStoragesService::getStorages() |
| 127 |
|
*/ |
| 128 |
|
public static function getSystemMountPoints() { |
| 129 |
|
$mountPoints = []; |
| 130 |
|
$service = self::$app->getContainer()->query('OCA\Files_External\Service\GlobalStoragesService'); |
| 131 |
|
|
| 132 |
|
foreach ($service->getStorages() as $storage) { |
| 133 |
|
$mountPoints[] = self::prepareMountPointEntry($storage, false); |
| 134 |
|
} |
| 135 |
|
|
| 136 |
|
return $mountPoints; |
| 137 |
|
} |
| 138 |
|
|
| 139 |
|
/** |
| 140 |
|
* Get the personal mount points of the current user |
|
@@ 146-155 (lines=10) @@
|
| 143 |
|
* |
| 144 |
|
* @deprecated 8.2.0 use UserStoragesService::getStorages() |
| 145 |
|
*/ |
| 146 |
|
public static function getPersonalMountPoints() { |
| 147 |
|
$mountPoints = []; |
| 148 |
|
$service = self::$app->getContainer()->query('OCA\Files_External\Service\UserStoragesService'); |
| 149 |
|
|
| 150 |
|
foreach ($service->getStorages() as $storage) { |
| 151 |
|
$mountPoints[] = self::prepareMountPointEntry($storage, true); |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
return $mountPoints; |
| 155 |
|
} |
| 156 |
|
|
| 157 |
|
/** |
| 158 |
|
* Convert a StorageConfig to the legacy mountPoints array format |