setMetaData sets the metadata from info
(info *mega.Node)
| 1007 | |
| 1008 | // setMetaData sets the metadata from info |
| 1009 | func (o *Object) setMetaData(info *mega.Node) (err error) { |
| 1010 | if info.GetType() != mega.FILE { |
| 1011 | return fs.ErrorIsDir // all other node types are directories |
| 1012 | } |
| 1013 | o.info = info |
| 1014 | return nil |
| 1015 | } |
| 1016 | |
| 1017 | // readMetaData gets the metadata if it hasn't already been fetched |
| 1018 | // |
no outgoing calls
no test coverage detected