Skip to content

Commit

Permalink
Merge pull request #23 from wjfz/master
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue authored Mar 8, 2022
2 parents 902bb1f + 99ba525 commit 18b1daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CosAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public function listContents(string $path, bool $deep): iterable

// 处理目录
foreach ($response['CommonPrefixes'] ?? [] as $prefix) {
yield new DirectoryAttributes($prefix);
yield new DirectoryAttributes($prefix['Prefix']);
}

foreach ($response['Contents'] ?? [] as $content) {
Expand Down

0 comments on commit 18b1daa

Please sign in to comment.