| @@ 278-282 (lines=5) @@ | ||
| 275 | $this->ensureBucketExists(); |
|
| 276 | ||
| 277 | $options = array(); |
|
| 278 | if ((string) $prefix != '') { |
|
| 279 | $options['prefix'] = $this->computePath($prefix); |
|
| 280 | } elseif (!empty($this->options['directory'])) { |
|
| 281 | $options['prefix'] = $this->options['directory']; |
|
| 282 | } |
|
| 283 | ||
| 284 | $list = $this->service->objects->listObjects($this->bucket, $options); |
|
| 285 | $keys = array(); |
|
| @@ 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); |
|
| @@ 232-236 (lines=5) @@ | ||
| 229 | public function listFiles($prefix = '') |
|
| 230 | { |
|
| 231 | $options = array('Bucket' => $this->bucket); |
|
| 232 | if ((string) $prefix != '') { |
|
| 233 | $options['Prefix'] = $this->computePath($prefix); |
|
| 234 | } elseif (!empty($this->options['directory'])) { |
|
| 235 | $options['Prefix'] = $this->options['directory']; |
|
| 236 | } |
|
| 237 | ||
| 238 | $files = array(); |
|
| 239 | $iter = $this->service->getIterator('ListObjects', $options); |
|