diff --git a/src/BaseClient.php b/src/BaseClient.php index 7b28243..e60a7d5 100644 --- a/src/BaseClient.php +++ b/src/BaseClient.php @@ -181,18 +181,6 @@ public function send(string $method, string $path, string $body = ''): ResponseI return $response; } - /** - * @param string $path - * - * @return Response - * @throws InvalidArgumentException - * @throws ClientExceptionInterface - */ - public function list(string $path = ''): Response - { - return $this->responseBuilder->build($this->send('LIST', $path)); - } - /** * @param string $path * diff --git a/src/Client.php b/src/Client.php index c32abfc..2d7660d 100644 --- a/src/Client.php +++ b/src/Client.php @@ -75,7 +75,7 @@ public function buildPath(string $path): string */ public function keys(string $path): Response { - return $this->list($this->buildPath($path)); + return $this->get($this->buildPath($path)); } /**