| @@ 169-177 (lines=9) @@ | ||
| 166 | /** |
|
| 167 | * {@inheritdoc} |
|
| 168 | */ |
|
| 169 | public function mtime($key) |
|
| 170 | { |
|
| 171 | try { |
|
| 172 | $result = $this->service->headObject($this->getOptions($key)); |
|
| 173 | ||
| 174 | return strtotime($result['LastModified']); |
|
| 175 | } catch (\Exception $e) { |
|
| 176 | return false; |
|
| 177 | } |
|
| 178 | } |
|
| 179 | ||
| 180 | /** |
|
| @@ 183-191 (lines=9) @@ | ||
| 180 | /** |
|
| 181 | * {@inheritdoc} |
|
| 182 | */ |
|
| 183 | public function size($key) |
|
| 184 | { |
|
| 185 | try { |
|
| 186 | $result = $this->service->headObject($this->getOptions($key)); |
|
| 187 | ||
| 188 | return $result['ContentLength']; |
|
| 189 | } catch (\Exception $e) { |
|
| 190 | return false; |
|
| 191 | } |
|
| 192 | } |
|
| 193 | ||
| 194 | /** |
|