readMetaData gets the metadata if it hasn't already been fetched it also sets the info
(ctx context.Context)
| 1018 | // |
| 1019 | // it also sets the info |
| 1020 | func (o *Object) readMetaData(ctx context.Context) (err error) { |
| 1021 | if o.info != nil { |
| 1022 | return nil |
| 1023 | } |
| 1024 | info, err := o.fs.readMetaDataForPath(ctx, o.remote) |
| 1025 | if err != nil { |
| 1026 | if err == fs.ErrorDirNotFound { |
| 1027 | err = fs.ErrorObjectNotFound |
| 1028 | } |
| 1029 | return err |
| 1030 | } |
| 1031 | return o.setMetaData(info) |
| 1032 | } |
| 1033 | |
| 1034 | // ModTime returns the modification time of the object |
| 1035 | // |
no test coverage detected