public function all($bucketId)
    {
        $this->ensureAuthorized();
        $list = array();
        $nexFile = null;
        do {
            $response = $this->client->b2ListFileNames($this->apiURL, $this->token, $bucketId, $nexFile, 1000);
            if ($response->isOk()) {
                $files = $response->get('files');
                $nexFile = $response->get('nextFileName');
                if (!is_null($files)) {
                    array_merge($list, $files);
                }
                if (is_null($nexFile)) {
                    return $list;
                }
            }
        } while (true);

        return $list;
    }