Object is a remote object that has been stat'd (so it exists, but is not necessarily open for reading)
| 160 | |
| 161 | // Object is a remote object that has been stat'd (so it exists, but is not necessarily open for reading) |
| 162 | type Object struct { |
| 163 | fs *Fs |
| 164 | remote string |
| 165 | size int64 |
| 166 | modTime time.Time |
| 167 | contentType string |
| 168 | |
| 169 | // Metadata as pointers to strings as they often won't be present |
| 170 | contentDisposition *string // Content-Disposition: header |
| 171 | contentDispositionFilename *string // Filename retrieved from Content-Disposition: header |
| 172 | cacheControl *string // Cache-Control: header |
| 173 | contentEncoding *string // Content-Encoding: header |
| 174 | contentLanguage *string // Content-Language: header |
| 175 | } |
| 176 | |
| 177 | // statusError returns an error if the res contained an error |
| 178 | func statusError(res *http.Response, err error) error { |
nothing calls this directly
no outgoing calls
no test coverage detected