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)
| 1428 | // It attempts to read the objects mtime and if that isn't present the |
| 1429 | // LastModified returned in the http headers |
| 1430 | func (o *Object) ModTime(ctx context.Context) time.Time { |
| 1431 | err := o.readMetaData(ctx) |
| 1432 | if err != nil { |
| 1433 | fs.Infof(o, "Failed to read metadata: %v", err) |
| 1434 | return time.Now() |
| 1435 | } |
| 1436 | return o.modTime |
| 1437 | } |
| 1438 | |
| 1439 | // Set modified time using propset |
| 1440 | // |
no test coverage detected