src/Gaufrette/Adapter/AwsS3.php 1 location
|
@@ 208-212 (lines=5) @@
|
| 205 |
|
public function listKeys($prefix = '') |
| 206 |
|
{ |
| 207 |
|
$options = array('Bucket' => $this->bucket); |
| 208 |
|
if ((string) $prefix != '') { |
| 209 |
|
$options['Prefix'] = $this->computePath($prefix); |
| 210 |
|
} elseif (!empty($this->options['directory'])) { |
| 211 |
|
$options['Prefix'] = $this->options['directory']; |
| 212 |
|
} |
| 213 |
|
|
| 214 |
|
$keys = array(); |
| 215 |
|
$iter = $this->service->getIterator('ListObjects', $options); |
src/Gaufrette/Adapter/GoogleCloudStorage.php 1 location
|
@@ 288-292 (lines=5) @@
|
| 285 |
|
$this->ensureBucketExists(); |
| 286 |
|
|
| 287 |
|
$options = array(); |
| 288 |
|
if ((string) $prefix != '') { |
| 289 |
|
$options['prefix'] = $this->computePath($prefix); |
| 290 |
|
} elseif (!empty($this->options['directory'])) { |
| 291 |
|
$options['prefix'] = $this->options['directory']; |
| 292 |
|
} |
| 293 |
|
|
| 294 |
|
$list = $this->service->objects->listObjects($this->bucket, $options); |
| 295 |
|
$keys = array(); |