src/Gaufrette/Adapter/AwsS3.php 1 location
|
@@ 303-310 (lines=8) @@
|
| 300 |
|
return $options; |
| 301 |
|
} |
| 302 |
|
|
| 303 |
|
protected function computePath($key) |
| 304 |
|
{ |
| 305 |
|
if (empty($this->options['directory'])) { |
| 306 |
|
return $key; |
| 307 |
|
} |
| 308 |
|
|
| 309 |
|
return sprintf('%s/%s', $this->options['directory'], $key); |
| 310 |
|
} |
| 311 |
|
|
| 312 |
|
/** |
| 313 |
|
* Computes the key from the specified path. |
src/Gaufrette/Adapter/GoogleCloudStorage.php 1 location
|
@@ 361-368 (lines=8) @@
|
| 358 |
|
} |
| 359 |
|
} |
| 360 |
|
|
| 361 |
|
protected function computePath($key) |
| 362 |
|
{ |
| 363 |
|
if (empty($this->options['directory'])) { |
| 364 |
|
return $key; |
| 365 |
|
} |
| 366 |
|
|
| 367 |
|
return sprintf('%s/%s', $this->options['directory'], $key); |
| 368 |
|
} |
| 369 |
|
|
| 370 |
|
/** |
| 371 |
|
* @param string $path |