Returns metadata for an object
(modTime time.Time)
| 1334 | |
| 1335 | // Returns metadata for an object |
| 1336 | func metadataFromModTime(modTime time.Time) map[string]string { |
| 1337 | metadata := make(map[string]string, 1) |
| 1338 | metadata[metaMtime] = modTime.Format(timeFormat) |
| 1339 | metadata[metaMtimeGsutil] = strconv.FormatInt(modTime.Unix(), 10) |
| 1340 | return metadata |
| 1341 | } |
| 1342 | |
| 1343 | // SetModTime sets the modification time of the local fs object |
| 1344 | func (o *Object) SetModTime(ctx context.Context, modTime time.Time) (err error) { |