apps/files/lib/Command/ScanAppData.php 1 location
|
@@ 275-283 (lines=9) @@
|
| 272 |
|
* @return \OCP\Files\Folder |
| 273 |
|
* @throws NotFoundException |
| 274 |
|
*/ |
| 275 |
|
private function getAppDataFolder() { |
| 276 |
|
$instanceId = $this->config->getSystemValue('instanceid', null); |
| 277 |
|
|
| 278 |
|
if ($instanceId === null) { |
| 279 |
|
throw new NotFoundException(); |
| 280 |
|
} |
| 281 |
|
|
| 282 |
|
return $this->root->get('appdata_'.$instanceId); |
| 283 |
|
} |
| 284 |
|
} |
| 285 |
|
|
lib/private/Security/IdentityProof/Manager.php 1 location
|
@@ 134-140 (lines=7) @@
|
| 131 |
|
* @return Key |
| 132 |
|
* @throws \RuntimeException |
| 133 |
|
*/ |
| 134 |
|
public function getSystemKey() { |
| 135 |
|
$instanceId = $this->config->getSystemValue('instanceid', null); |
| 136 |
|
if ($instanceId === null) { |
| 137 |
|
throw new \RuntimeException('no instance id!'); |
| 138 |
|
} |
| 139 |
|
return $this->retrieveKey('system-' . $instanceId); |
| 140 |
|
} |
| 141 |
|
|
| 142 |
|
|
| 143 |
|
} |