readMetaData gets the metadata if it hasn't already been fetched it also sets the info
(ctx context.Context)
| 747 | // |
| 748 | // it also sets the info |
| 749 | func (o *Object) readMetaData(ctx context.Context) (err error) { |
| 750 | file, err := o.fs.readMetaDataForPath(ctx, o.remote) |
| 751 | if err != nil { |
| 752 | if files_sdk.IsNotExist(err) { |
| 753 | return fs.ErrorObjectNotFound |
| 754 | } |
| 755 | return err |
| 756 | } |
| 757 | if file.IsDir() { |
| 758 | return fs.ErrorIsDir |
| 759 | } |
| 760 | return o.setMetaData(file) |
| 761 | } |
| 762 | |
| 763 | // ModTime returns the modification time of the object |
| 764 | // |
no test coverage detected