SetModTime sets the modification time of the Object
(ctx context.Context, modTime time.Time)
| 1922 | |
| 1923 | // SetModTime sets the modification time of the Object |
| 1924 | func (o *Object) SetModTime(ctx context.Context, modTime time.Time) error { |
| 1925 | info, err := o.getMetaData(ctx) |
| 1926 | if err != nil { |
| 1927 | return err |
| 1928 | } |
| 1929 | info.Info[timeKey] = timeString(modTime) |
| 1930 | |
| 1931 | // Copy to the same name, overwriting the metadata only |
| 1932 | return o.fs.copy(ctx, o, o, info) |
| 1933 | } |
| 1934 | |
| 1935 | // Storable returns if this object is storable |
| 1936 | func (o *Object) Storable() bool { |
nothing calls this directly
no test coverage detected