MCPcopy
hub / github.com/rclone/rclone / Object

Struct Object

backend/http/http.go:162–175  ·  view source on GitHub ↗

Object is a remote object that has been stat'd (so it exists, but is not necessarily open for reading)

Source from the content-addressed store, hash-verified

160
161// Object is a remote object that has been stat'd (so it exists, but is not necessarily open for reading)
162type 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
178func statusError(res *http.Response, err error) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected