listFiles($bucket, $prefix, $marker, $limit, $delimiter); if ($err !== null) { echo "\n====> list file err: \n"; var_dump($err); } else { $marker = null; if (array_key_exists('marker', $ret)) { $marker = $ret['marker']; } echo "Marker: $marker\n"; echo "\nList Items====>\n"; //var_dump($ret['items']); print('items count:' . count($ret['items']) . "\n"); if (array_key_exists('commonPrefixes', $ret)) { print_r($ret['commonPrefixes']); } } } while (!empty($marker));