src/Gaufrette/Adapter/AwsS3.php 1 location
|
@@ 202-206 (lines=5) @@
|
| 199 |
|
public function listKeys($prefix = '') |
| 200 |
|
{ |
| 201 |
|
$options = array('Bucket' => $this->bucket); |
| 202 |
|
if ((string) $prefix != '') { |
| 203 |
|
$options['Prefix'] = $this->computePath($prefix); |
| 204 |
|
} elseif (!empty($this->options['directory'])) { |
| 205 |
|
$options['Prefix'] = $this->options['directory']; |
| 206 |
|
} |
| 207 |
|
|
| 208 |
|
$keys = array(); |
| 209 |
|
$iter = $this->service->getIterator('ListObjects', $options); |
src/Gaufrette/Adapter/GoogleCloudStorage.php 1 location
|
@@ 277-281 (lines=5) @@
|
| 274 |
|
$this->ensureBucketExists(); |
| 275 |
|
|
| 276 |
|
$options = array(); |
| 277 |
|
if ((string) $prefix != '') { |
| 278 |
|
$options['prefix'] = $this->computePath($prefix); |
| 279 |
|
} elseif (!empty($this->options['directory'])) { |
| 280 |
|
$options['prefix'] = $this->options['directory']; |
| 281 |
|
} |
| 282 |
|
|
| 283 |
|
$list = $this->service->objects->listObjects($this->bucket, $options); |
| 284 |
|
$keys = array(); |