@@ 203-211 (lines=9) @@ | ||
200 | /** |
|
201 | * {@inheritdoc} |
|
202 | */ |
|
203 | public function mtime($key) |
|
204 | { |
|
205 | try { |
|
206 | $result = $this->service->headObject($this->getOptions($key)); |
|
207 | ||
208 | return strtotime($result['LastModified']); |
|
209 | } catch (\Exception $e) { |
|
210 | return false; |
|
211 | } |
|
212 | } |
|
213 | ||
214 | /** |
|
@@ 217-225 (lines=9) @@ | ||
214 | /** |
|
215 | * {@inheritdoc} |
|
216 | */ |
|
217 | public function size($key) |
|
218 | { |
|
219 | try { |
|
220 | $result = $this->service->headObject($this->getOptions($key)); |
|
221 | ||
222 | return $result['ContentLength']; |
|
223 | } catch (\Exception $e) { |
|
224 | return false; |
|
225 | } |
|
226 | } |
|
227 | ||
228 | /** |