readMetaData gets the metadata if it hasn't already been fetched it also sets the info
(ctx context.Context)
| 1308 | // |
| 1309 | // it also sets the info |
| 1310 | func (o *Object) readMetaData(ctx context.Context) (err error) { |
| 1311 | if !o.modTime.IsZero() { |
| 1312 | return nil |
| 1313 | } |
| 1314 | object, err := o.readObjectInfo(ctx) |
| 1315 | if err != nil { |
| 1316 | return err |
| 1317 | } |
| 1318 | o.setMetaData(object) |
| 1319 | return nil |
| 1320 | } |
| 1321 | |
| 1322 | // ModTime returns the modification time of the object |
| 1323 | // |
no test coverage detected