src/Gaufrette/Adapter/GoogleCloudStorage.php 1 location
|
@@ 291-295 (lines=5) @@
|
| 288 |
|
$this->ensureBucketExists(); |
| 289 |
|
|
| 290 |
|
$options = array(); |
| 291 |
|
if ((string) $prefix != '') { |
| 292 |
|
$options['prefix'] = $this->computePath($prefix); |
| 293 |
|
} elseif (!empty($this->options['directory'])) { |
| 294 |
|
$options['prefix'] = $this->options['directory']; |
| 295 |
|
} |
| 296 |
|
|
| 297 |
|
$list = $this->service->objects->listObjects($this->bucket, $options); |
| 298 |
|
$keys = array(); |
src/Gaufrette/Adapter/AwsS3.php 1 location
|
@@ 222-226 (lines=5) @@
|
| 219 |
|
public function listKeys($prefix = '') |
| 220 |
|
{ |
| 221 |
|
$options = ['Bucket' => $this->bucket]; |
| 222 |
|
if ((string) $prefix != '') { |
| 223 |
|
$options['Prefix'] = $this->computePath($prefix); |
| 224 |
|
} elseif (!empty($this->options['directory'])) { |
| 225 |
|
$options['Prefix'] = $this->options['directory']; |
| 226 |
|
} |
| 227 |
|
|
| 228 |
|
$keys = []; |
| 229 |
|
$iter = $this->service->getIterator('ListObjects', $options); |