readMetaData gets the metadata if it hasn't already been fetched it also sets the info
(ctx context.Context)
| 1413 | // |
| 1414 | // it also sets the info |
| 1415 | func (o *Object) readMetaData(ctx context.Context) (err error) { |
| 1416 | if o.hasMetaData { |
| 1417 | return nil |
| 1418 | } |
| 1419 | info, err := o.fs.readMetaDataForPath(ctx, o.remote) |
| 1420 | if err != nil { |
| 1421 | return err |
| 1422 | } |
| 1423 | return o.setMetaData(info) |
| 1424 | } |
| 1425 | |
| 1426 | // ModTime returns the modification time of the object |
| 1427 | // |
no test coverage detected