ModTime returns the modification time of the object It attempts to read the objects mtime and if that isn't present the LastModified returned in the http headers
(ctx context.Context)
| 1324 | // It attempts to read the objects mtime and if that isn't present the |
| 1325 | // LastModified returned in the http headers |
| 1326 | func (o *Object) ModTime(ctx context.Context) time.Time { |
| 1327 | err := o.readMetaData(ctx) |
| 1328 | if err != nil { |
| 1329 | // fs.Logf(o, "Failed to read metadata: %v", err) |
| 1330 | return time.Now() |
| 1331 | } |
| 1332 | return o.modTime |
| 1333 | } |
| 1334 | |
| 1335 | // Returns metadata for an object |
| 1336 | func metadataFromModTime(modTime time.Time) map[string]string { |
nothing calls this directly
no test coverage detected