diff --git a/src/Client.php b/src/Client.php index 31d36c3..5453555 100755 --- a/src/Client.php +++ b/src/Client.php @@ -305,6 +305,10 @@ public function listFiles(array $options) $nextFileName = null; $maxFileCount = 1000; + + $prefix = isset($options['Prefix']) ? $options['Prefix'] : ''; + $delimiter = isset($options['Delimiter']) ? $options['Delimiter'] : null; + $files = []; if (!isset($options['BucketId']) && isset($options['BucketName'])) { @@ -328,6 +332,8 @@ public function listFiles(array $options) 'bucketId' => $options['BucketId'], 'startFileName' => $nextFileName, 'maxFileCount' => $maxFileCount, + 'prefix' => $prefix, + 'delimiter' => $delimiter, ], ]);