* Import report * * @param string|null $path * @param string|null $raw * @return DataResponse * @throws \OCP\Files\NotFoundException * @throws \OCP\Files\NotPermittedException */
(?string $path = null, ?string $raw = null)
| 265 | * @throws \OCP\Files\NotPermittedException |
| 266 | */ |
| 267 | #[NoAdminRequired] |
| 268 | public function import(?string $path = null, ?string $raw = null) |
| 269 | { |
| 270 | try { |
| 271 | return new DataResponse($this->bundleImportService->import($path, $raw)); |
| 272 | } catch (\InvalidArgumentException $e) { |
| 273 | return new DataResponse(['error' => $e->getMessage()], 400); |
| 274 | } |
| 275 | } |
| 276 | } |
nothing calls this directly
no outgoing calls
no test coverage detected