diff --git a/src/CosAdapter.php b/src/CosAdapter.php index 7ad81ff..2e384ab 100644 --- a/src/CosAdapter.php +++ b/src/CosAdapter.php @@ -409,7 +409,7 @@ public function listContents($directory = '', $recursive = false) $response = $this->listObjects($directory, $recursive); - foreach ((array) $response->get('Contents') as $content) { + foreach ((array) $response['Contents'] as $content) { $list[] = $this->normalizeFileInfo($content); }